summaryrefslogtreecommitdiff
path: root/lib/libc/crypt/crypt_checkpass.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-02 07:39:59 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-02 07:39:59 +0000
commit4c9086c86bb65523d4879c5597633949740fa507 (patch)
treefad856752c6ff475ecc0d5cf4a62e1062755a48a /lib/libc/crypt/crypt_checkpass.3
parent34d6128aa765bdf226254a0663e662d3ec6f76e1 (diff)
macro cleanup; kaspars at bankovskis dot net
Diffstat (limited to 'lib/libc/crypt/crypt_checkpass.3')
-rw-r--r--lib/libc/crypt/crypt_checkpass.319
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/libc/crypt/crypt_checkpass.3 b/lib/libc/crypt/crypt_checkpass.3
index fd60523502e..09f2d02796c 100644
--- a/lib/libc/crypt/crypt_checkpass.3
+++ b/lib/libc/crypt/crypt_checkpass.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: crypt_checkpass.3,v 1.4 2014/11/21 12:52:54 jmc Exp $
+.\" $OpenBSD: crypt_checkpass.3,v 1.5 2014/12/02 07:39:58 schwarze Exp $
.\"
.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 21 2014 $
+.Dd $Mdocdate: December 2 2014 $
.Dt CRYPT_CHECKPASS 3
.Os
.Sh NAME
@@ -31,10 +31,19 @@
The
.Fn crypt_checkpass
function is provided to simplify checking a user's password.
-If both the hash and the password are the empty string, authentication
+If both the
+.Fa hash
+and the
+.Fa password
+are the empty string, authentication
is a success.
-Otherwise, the password is hashed and compared to the provided hash.
-If the hash is
+Otherwise, the
+.Fa password
+is hashed and compared to the provided
+.Fa hash .
+If the
+.Fa hash
+is
.Dv NULL ,
authentication will always fail, but a default
amount of work is performed to simulate the hashing operation.