diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/crypt/crypt_checkpass.3 | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/lib/libc/crypt/crypt_checkpass.3 b/src/lib/libc/crypt/crypt_checkpass.3 index 5786c25a3a..9da5b984dc 100644 --- a/src/lib/libc/crypt/crypt_checkpass.3 +++ b/src/lib/libc/crypt/crypt_checkpass.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: crypt_checkpass.3,v 1.9 2015/07/23 22:20:02 tedu Exp $ | 1 | .\" $OpenBSD: crypt_checkpass.3,v 1.10 2017/07/22 03:23:48 tedu Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
| 4 | .\" | 4 | .\" |
| @@ -14,7 +14,7 @@ | |||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | .\" | 16 | .\" |
| 17 | .Dd $Mdocdate: July 23 2015 $ | 17 | .Dd $Mdocdate: July 22 2017 $ |
| 18 | .Dt CRYPT_CHECKPASS 3 | 18 | .Dt CRYPT_CHECKPASS 3 |
| 19 | .Os | 19 | .Os |
| 20 | .Sh NAME | 20 | .Sh NAME |
| @@ -30,7 +30,7 @@ | |||
| 30 | .Sh DESCRIPTION | 30 | .Sh DESCRIPTION |
| 31 | The | 31 | The |
| 32 | .Fn crypt_checkpass | 32 | .Fn crypt_checkpass |
| 33 | function is provided to simplify checking a user's password. | 33 | function simplifies checking a user's password. |
| 34 | If both the | 34 | If both the |
| 35 | .Fa hash | 35 | .Fa hash |
| 36 | and the | 36 | and the |
| @@ -53,11 +53,15 @@ A failure will return \-1 and set | |||
| 53 | .Pp | 53 | .Pp |
| 54 | The | 54 | The |
| 55 | .Fn crypt_newhash | 55 | .Fn crypt_newhash |
| 56 | function is provided to simplify the creation of new password hashes. | 56 | function simplifies the creation of new password hashes. |
| 57 | The provided | 57 | The provided |
| 58 | .Fa password | 58 | .Fa password |
| 59 | is randomly salted and hashed and stored in | 59 | is randomly salted and hashed and stored in |
| 60 | .Fa hash . | 60 | .Fa hash . |
| 61 | The size of the available space is specified by | ||
| 62 | .Fa hashsize , | ||
| 63 | which should be | ||
| 64 | .Dv _PASSWORD_LEN . | ||
| 61 | The | 65 | The |
| 62 | .Fa pref | 66 | .Fa pref |
| 63 | argument identifies the preferred hashing algorithm and parameters. | 67 | argument identifies the preferred hashing algorithm and parameters. |
| @@ -66,9 +70,10 @@ Possible values are: | |||
| 66 | .It Dq bcrypt,<rounds> | 70 | .It Dq bcrypt,<rounds> |
| 67 | The bcrypt algorithm, where the value of rounds can be between 4 and 31 and | 71 | The bcrypt algorithm, where the value of rounds can be between 4 and 31 and |
| 68 | specifies the base 2 logarithm of the number of rounds. | 72 | specifies the base 2 logarithm of the number of rounds. |
| 69 | The special rounds value | 73 | If rounds is omitted or the special value |
| 70 | .Sq a | 74 | .Sq a , |
| 71 | automatically selects rounds based on system performance. | 75 | an appropriate number of rounds is automatically selected based on system |
| 76 | performance. | ||
| 72 | .El | 77 | .El |
| 73 | .Sh RETURN VALUES | 78 | .Sh RETURN VALUES |
| 74 | .Rv -std crypt_checkpass crypt_newhash | 79 | .Rv -std crypt_checkpass crypt_newhash |
| @@ -89,7 +94,7 @@ to | |||
| 89 | .Er EINVAL | 94 | .Er EINVAL |
| 90 | if | 95 | if |
| 91 | .Fa pref | 96 | .Fa pref |
| 92 | is unsupported. | 97 | is unsupported or insufficient space is provided. |
| 93 | .Sh SEE ALSO | 98 | .Sh SEE ALSO |
| 94 | .Xr crypt 3 , | 99 | .Xr crypt 3 , |
| 95 | .Xr login.conf 5 , | 100 | .Xr login.conf 5 , |
