From f979161646cbb0dcb7a394df1cd4fbd92f440880 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Fri, 21 Nov 2014 05:13:44 +0000 Subject: change prototype for crypt_newhash. the login_cap_t is a holdover from its pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt --- src/lib/libc/crypt/crypt_checkpass.3 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/lib/libc/crypt/crypt_checkpass.3') diff --git a/src/lib/libc/crypt/crypt_checkpass.3 b/src/lib/libc/crypt/crypt_checkpass.3 index 3a360fb899..479a78647b 100644 --- a/src/lib/libc/crypt/crypt_checkpass.3 +++ b/src/lib/libc/crypt/crypt_checkpass.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: crypt_checkpass.3,v 1.1 2014/11/20 19:18:25 tedu Exp $ +.\" $OpenBSD: crypt_checkpass.3,v 1.2 2014/11/21 05:13:44 tedu Exp $ .\" .\" Copyright (c) Ted Unangst .\" @@ -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 20 2014 $ +.Dd $Mdocdate: November 21 2014 $ .Dt CRYPT_CHECKPASS 3 .Os .Sh NAME @@ -25,9 +25,8 @@ .In unistd.h .Ft int .Fn crypt_checkpass "const char *password" "const char *hash" -.In login_cap.h .Ft int -.Fn crypt_newhash "const char *password" "login_cap_t *lc" "char *hash" "size_t hashsize" +.Fn crypt_newhash "const char *password" "const char *pref" "char *hash" "size_t hashsize" .Sh DESCRIPTION The .Fn crypt_checkpass @@ -47,9 +46,9 @@ The provided .Fa password is randomly salted and hashed and stored in .Fa hash . -The login class argument -.Fa lc -is used to identify the preferred hashing algorithm and parameters. +The +.Fa pref +argument identifies the preferred hashing algorithm and parameters. Refer to .Xr login.conf 5 . .Sh RETURN VALUES -- cgit v1.2.3-55-g6feb