summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-15 18:35:34 +0000
committerDenis Vlasenko2008-06-15 18:35:34 +0000
commitb4c5bf615e0cd0da41222b853627ce2c893cba5c (patch)
tree6a631fbd817d16dce6f0d16ed7381ee54cfd7b71 /include
parent5703c22a51a154db17e6a7f6426a95232542cc9e (diff)
downloadbusybox-b4c5bf615e0cd0da41222b853627ce2c893cba5c.zip
busybox-b4c5bf615e0cd0da41222b853627ce2c893cba5c.tar.gz
Specially for Bernhard Fischer introduce USE_BB_CRYPT
which selects between libc/custom crypt routines.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 655ca01..e92dbc4 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -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.