Browse Source

add prototypes for new crypt functions

OPENBSD_5_6
tedu 10 years ago
parent
commit
f1d92dda6c
2 changed files with 7 additions and 2 deletions
  1. +3
    -1
      src/include/pwd.h
  2. +4
    -1
      src/include/unistd.h

+ 3
- 1
src/include/pwd.h View File

@ -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 $ */ /* $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 *user_from_uid(uid_t, int);
char *bcrypt_gensalt(u_int8_t); char *bcrypt_gensalt(u_int8_t);
char *bcrypt(const char *, const char *); 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 *); struct passwd *pw_dup(const struct passwd *);
#endif #endif
__END_DECLS __END_DECLS


+ 4
- 1
src/include/unistd.h View File

@ -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 $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*- /*-
@ -410,6 +410,9 @@ int fdatasync(int);
#endif #endif
#if __XPG_VISIBLE || __BSD_VISIBLE #if __XPG_VISIBLE || __BSD_VISIBLE
#if __BSD_VISIBLE
int crypt_checkpass(const char *, const char *);
#endif
char *crypt(const char *, const char *); char *crypt(const char *, const char *);
int encrypt(char *, int); int encrypt(char *, int);
int fchdir(int); int fchdir(int);


Loading…
Cancel
Save