Specially for Bernhard Fischer introduce USE_BB_CRYPT

which selects between libc/custom crypt routines.
This commit is contained in:
Denis Vlasenko
2008-06-15 18:35:34 +00:00
parent 5703c22a51
commit b4c5bf615e
3 changed files with 71 additions and 30 deletions

View File

@ -1032,6 +1032,9 @@ extern int restricted_shell(const char *shell);
extern void setup_environment(const char *shell, int clear_env, int change_env, const struct passwd *pw);
extern int correct_password(const struct passwd *pw);
/* Returns a malloced string */
#if !ENABLE_USE_BB_CRYPT
#define pw_encrypt(clear, salt, cleanup) pw_encrypt(clear, salt)
#endif
extern char *pw_encrypt(const char *clear, const char *salt, int cleanup);
extern int obscure(const char *old, const char *newval, const struct passwd *pwdp);
/* rnd is additional random input. New one is returned.