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>
This commit is contained in:
Morten Kvistgaard
2014-08-05 21:57:18 +02:00
committed by Denys Vlasenko
parent 09a0e2223f
commit feac9b607d
5 changed files with 100 additions and 52 deletions

View File

@ -134,6 +134,13 @@ config FEATURE_FTPD_ACCEPT_BROKEN_LIST
it increases the code size by ~40 bytes.
Most other ftp servers seem to behave similar to this.
config FEATURE_FTP_AUTHENTICATION
bool "Enable authentication"
default y
depends on FTPD
help
Enable basic system login as seen in telnet etc.
config FTPGET
bool "ftpget"
default y