summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-06-02 00:14:16 +0000
committerguenther <guenther@openbsd.org>2012-06-02 00:14:16 +0000
commite17cce25c04f3087097908abd765af49a3cc54cb (patch)
tree7d3051d739ceb64ee1f6f0ead9daa5151c8078ca /lib/libc/crypt
parentDelete diagnostic code that reports timeout adjustments on resume. (diff)
downloadwireguard-openbsd-e17cce25c04f3087097908abd765af49a3cc54cb.tar.xz
wireguard-openbsd-e17cce25c04f3087097908abd765af49a3cc54cb.zip
Update STANDARDS section for a few <stdlib.h> functions
Update SYNOPSIS for setkey() to show it's in <stdlib.h> ok jmc@, millert@
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r--lib/libc/crypt/crypt.311
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/crypt/crypt.3 b/lib/libc/crypt/crypt.3
index b58894d9adb..8415f28b9bc 100644
--- a/lib/libc/crypt/crypt.3
+++ b/lib/libc/crypt/crypt.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: crypt.3,v 1.27 2007/10/08 11:55:27 pyr Exp $
+.\" $OpenBSD: crypt.3,v 1.28 2012/06/02 00:14:16 guenther Exp $
.\"
.\" FreeSec: libcrypt
.\"
@@ -31,7 +31,7 @@
.\"
.\" Manual page, using -mandoc macros
.\"
-.Dd $Mdocdate: October 8 2007 $
+.Dd $Mdocdate: June 2 2012 $
.Dt CRYPT 3
.Os
.Sh NAME
@@ -45,13 +45,14 @@
.Nm md5crypt
.Nd DES encryption
.Sh SYNOPSIS
-.Fd #include <pwd.h>
+.Fd #include <stdlib.h>
+.Ft int
+.Fn setkey "const char *key"
+.Pp
.Fd #include <unistd.h>
.Ft char *
.Fn crypt "const char *key" "const char *setting"
.Ft int
-.Fn setkey "const char *key"
-.Ft int
.Fn encrypt "char *block" "int flag"
.Ft int
.Fn des_setkey "const char *key"