aboutsummaryrefslogtreecommitdiff
path: root/libbb/correct_password.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ftpd: add optional support for authenticationMorten Kvistgaard2014-08-051-29/+67
| | | | | | | | | | | | | | 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>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-311-9/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: move nuke_str() from passwd into libbbDenys Vlasenko2013-11-191-1/+10
| | | | | | | | | | | | function old new delta nuke_str - 15 +15 ask_and_check_password_extended 215 206 -9 init_main 781 771 -10 nuke_str 27 - -27 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* comment tweakDenys Vlasenko2013-11-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sulogin: use common password-checking routine.Denys Vlasenko2013-11-191-6/+15
| | | | | | | | | | | | | | | | This needed some extensions correct_passwd() function, which got renamed ask_and_check_password() to better describe what it does. function old new delta ask_and_check_password_extended - 215 +215 ask_and_check_password - 12 +12 vlock_main 394 397 +3 sulogin_main 494 326 -168 correct_password 207 - -207 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/1 up/down: 230/-375) Total: -145 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* refactor correct_password.c to avoid one ifwalter harms2012-09-041-6/+3
| | | | | Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* - add new applet mkpasswd(1)Bernhard Reutner-Fischer2008-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_ask - 355 +355 mkpasswd_main - 296 +296 .rodata 121746 121847 +101 packed_usage 24632 24689 +57 static.methods - 21 +21 gmatch 229 248 +19 bb_ask_stdin - 11 +11 applet_names 1949 1958 +9 applet_main 1172 1176 +4 sulogin_main 503 505 +2 applet_nameofs 586 588 +2 sha256_hash 329 327 -2 correct_password 208 206 -2 parse_command 1442 1439 -3 get_cred_or_die 145 141 -4 passwd_main 1054 1044 -10 bb_askpass 348 - -348 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 7/5 up/down: 877/-369) Total: 508 bytes
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-1/+1
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* udhcpc: kill undocumented -W, it was a no-op.Denis Vlasenko2008-06-131-1/+1
| | | | | | | | | | | | | | | | | | fix option parsing in the case some CONFIG_x are off. disable -b on NOMMU, make backgrounding work correctly (if a bit differently from MMU case). Previously, it wasn't working at all. stop using global data for flags in main(), opt bitfield works as well. function old new delta cryptpw_main 177 153 -24 packed_usage 24478 24452 -26 client_background 26 - -26 udhcpc_main 2462 2372 -90 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
* make pw_encrypt() return malloc'ed string.Denis Vlasenko2008-06-121-1/+4
| | | | | | | text data bss dec hex filename 759802 604 6684 767090 bb472 busybox_old 759804 604 6676 767084 bb46c busybox_unstripped
* uclibc insists on having 70k static buffer for crypt.Denis Vlasenko2008-06-121-1/+1
| | | | | | | | | | | | For bbox it's not acceptable. Roll our own des and md5 crypt implementation. Against older uclibc: text data bss dec hex filename 759945 604 6684 767233 bb501 busybox_old 759766 604 6684 767054 bb44e busybox_unstripped so, we still save on code size.
* appletlib.c: make it actally follow _BB_SUID_ALWAYS rulesDenis Vlasenko2007-10-291-5/+10
| | | | | | | | | | adduser: implement -S and code shrink / fix uid selection *: sanitize getspnam_r use text data bss dec hex filename 777042 974 9676 787692 c04ec busybox_old 776883 974 9676 787533 c044d busybox_unstripped
* correct_password: if password is 'x' or '*' and there is no shadow, useDenis Vlasenko2007-07-031-4/+2
| | | | | fake encrypted password 'aa' (which is guaranteed to fail password check).
* correct_password: do not print "no shadow passwd..." messageDenis Vlasenko2007-07-031-10/+7
| | | | | | | | | | | | function old new delta correct_password 204 191 -13 .rodata 129530 129466 -64 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-77) Total: -77 bytes text data bss dec hex filename 675984 2744 13968 692696 a91d8 busybox_old 675908 2744 13968 692620 a918c busybox_unstripped
* remove obsolete commentDenis Vlasenko2007-06-161-2/+1
|
* - vda perfers not to use the bannerBernhard Reutner-Fischer2007-06-151-3/+2
|
* *: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko2007-06-131-3/+8
| | | | | | | | | | | | correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
* - use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes.Bernhard Reutner-Fischer2007-06-111-2/+2
|
* login: ask passwords even for wrong usernames.Denis Vlasenko2007-06-081-3/+8
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 680099 2704 15648 698451 aa853 busybox_old 680110 2704 15648 698462 aa85e busybox_unstripped
* Do not fail password check if shadow password does not exist -Denis Vlasenko2007-03-131-11/+16
| | | | | | | | | | | | | | | | | | | | | | fall back to ordinary one Reduced usage of functions returning datain static buffers. (mostly passwd/group/shadow related): function old new delta correct_password 143 193 +50 sulogin_main 490 533 +43 adduser_main 732 774 +42 passwd_main 1875 1915 +40 addgroup_main 330 365 +35 bb_internal_getspnam 38 - -38 bb_internal_fgetpwent 38 - -38 bb_internal_fgetgrent 38 - -38 static.resultbuf 168 88 -80 static.buffer 1872 1104 -768 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/2 up/down: 210/-962) Total: -752 bytes
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-3/+2
|
* correct_password: undo whitespace damage.Denis Vlasenko2006-09-231-25/+13
| | | | vlock + correct_password: fix incorrect line breaks in messages.
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley2006-05-071-1/+1
| | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
* just whitespaceTim Riker2006-01-251-1/+1
|
* Minor cosmetic fix from Tito.Rob Landley2006-01-091-1/+1
|
* Remove this error message at Vodz request, it was misleading.Glenn L McGrath2004-09-241-1/+0
|
* Do not use getpass(3)Eric Andersen2004-05-011-2/+2
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Major coreutils update.Manuel Novoa III2003-03-191-2/+2
|
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-0/+78
-Erik