summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/crypt_checkpass.3
diff options
context:
space:
mode:
authortedu <>2014-11-21 05:13:44 +0000
committertedu <>2014-11-21 05:13:44 +0000
commitf979161646cbb0dcb7a394df1cd4fbd92f440880 (patch)
treeaab55e1916150db511e8641b6da28da0485d6bd9 /src/lib/libc/crypt/crypt_checkpass.3
parent8227fbbb66c1dad3ea32f886ed7cb6d19fe4de31 (diff)
downloadopenbsd-f979161646cbb0dcb7a394df1cd4fbd92f440880.tar.gz
openbsd-f979161646cbb0dcb7a394df1cd4fbd92f440880.tar.bz2
openbsd-f979161646cbb0dcb7a394df1cd4fbd92f440880.zip
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
Diffstat (limited to 'src/lib/libc/crypt/crypt_checkpass.3')
-rw-r--r--src/lib/libc/crypt/crypt_checkpass.313
1 files changed, 6 insertions, 7 deletions
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 @@
1.\" $OpenBSD: crypt_checkpass.3,v 1.1 2014/11/20 19:18:25 tedu Exp $ 1.\" $OpenBSD: crypt_checkpass.3,v 1.2 2014/11/21 05:13:44 tedu Exp $
2.\" 2.\"
3.\" Copyright (c) Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 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: November 20 2014 $ 17.Dd $Mdocdate: November 21 2014 $
18.Dt CRYPT_CHECKPASS 3 18.Dt CRYPT_CHECKPASS 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -25,9 +25,8 @@
25.In unistd.h 25.In unistd.h
26.Ft int 26.Ft int
27.Fn crypt_checkpass "const char *password" "const char *hash" 27.Fn crypt_checkpass "const char *password" "const char *hash"
28.In login_cap.h
29.Ft int 28.Ft int
30.Fn crypt_newhash "const char *password" "login_cap_t *lc" "char *hash" "size_t hashsize" 29.Fn crypt_newhash "const char *password" "const char *pref" "char *hash" "size_t hashsize"
31.Sh DESCRIPTION 30.Sh DESCRIPTION
32The 31The
33.Fn crypt_checkpass 32.Fn crypt_checkpass
@@ -47,9 +46,9 @@ The provided
47.Fa password 46.Fa password
48is randomly salted and hashed and stored in 47is randomly salted and hashed and stored in
49.Fa hash . 48.Fa hash .
50The login class argument 49The
51.Fa lc 50.Fa pref
52is used to identify the preferred hashing algorithm and parameters. 51argument identifies the preferred hashing algorithm and parameters.
53Refer to 52Refer to
54.Xr login.conf 5 . 53.Xr login.conf 5 .
55.Sh RETURN VALUES 54.Sh RETURN VALUES