summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-05-16 21:28:15 +0000
committertedu <tedu@openbsd.org>2014-05-16 21:28:15 +0000
commit5f7129452baed4130ebfe8a9e34828c2a9f6bd8a (patch)
tree1d6d194a177f6eb2912ccb4258fadb8a7def6f2f
parentsync (diff)
downloadwireguard-openbsd-5f7129452baed4130ebfe8a9e34828c2a9f6bd8a.tar.xz
wireguard-openbsd-5f7129452baed4130ebfe8a9e34828c2a9f6bd8a.zip
add prototypes for new crypt functions
-rw-r--r--include/pwd.h4
-rw-r--r--include/unistd.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 36dd2320e57..98455523fbd 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd.h,v 1.22 2014/05/12 19:13:51 tedu Exp $ */
+/* $OpenBSD: pwd.h,v 1.23 2014/05/16 21:28:15 tedu Exp $ */
/* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */
/*-
@@ -107,6 +107,8 @@ int setpassent(int);
char *user_from_uid(uid_t, int);
char *bcrypt_gensalt(u_int8_t);
char *bcrypt(const char *, const char *);
+int bcrypt_newhash(const char *, int, char *, size_t);
+int bcrypt_checkpass(const char *, const char *);
struct passwd *pw_dup(const struct passwd *);
#endif
__END_DECLS
diff --git a/include/unistd.h b/include/unistd.h
index 1ba25f421f3..ea5d26b7140 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.85 2014/04/21 11:28:26 guenther Exp $ */
+/* $OpenBSD: unistd.h,v 1.86 2014/05/16 21:28:15 tedu Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -410,6 +410,9 @@ int fdatasync(int);
#endif
#if __XPG_VISIBLE || __BSD_VISIBLE
+#if __BSD_VISIBLE
+int crypt_checkpass(const char *, const char *);
+#endif
char *crypt(const char *, const char *);
int encrypt(char *, int);
int fchdir(int);