diff options
author | Morten Kvistgaard | 2014-08-05 21:57:18 +0200 |
---|---|---|
committer | Denys Vlasenko | 2014-08-05 21:57:18 +0200 |
commit | feac9b607dc68ea63992a46b3b8361f00f663cdc (patch) | |
tree | ed5bca82370298e195f5b5e3d84d40f9e7470a32 /include/libbb.h | |
parent | 09a0e2223f68a266749043bf33c84faeb5cee8a0 (diff) | |
download | busybox-feac9b607dc68ea63992a46b3b8361f00f663cdc.zip busybox-feac9b607dc68ea63992a46b3b8361f00f663cdc.tar.gz |
ftpd: add optional support for authentication
function old new delta
cmdio_get_cmd_and_arg - 237 +237
get_passwd - 97 +97
check_password - 82 +82
ftpd_main 2297 2178 -119
ask_and_check_password_extended 206 84 -122
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 0/2 up/down: 416/-241) Total: 175 bytes
Signed-off-by: Morten Kvistgaard <MK@pch-engineering.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 858084b..ff223dd 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1316,6 +1316,7 @@ int sd_listen_fds(void); #define SETUP_ENV_NO_CHDIR (1 << 4) void setup_environment(const char *shell, int flags, const struct passwd *pw) FAST_FUNC; void nuke_str(char *str) FAST_FUNC; +int check_password(const struct passwd *pw, const char *plaintext) FAST_FUNC; int ask_and_check_password_extended(const struct passwd *pw, int timeout, const char *prompt) FAST_FUNC; int ask_and_check_password(const struct passwd *pw) FAST_FUNC; /* Returns a malloced string */ |