diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-20 19:47:49 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-20 19:47:49 +0100 |
commit | 9731ca7611e19827702eb8c690fb6c3b37403319 (patch) | |
tree | 703d8fbaf75e872fca83ca1e57e830eaeff1aace /include/usage.src.h | |
parent | 38972a8df1df970a5878bbd7fc5ef6259f1168ab (diff) | |
download | busybox-w32-9731ca7611e19827702eb8c690fb6c3b37403319.tar.gz busybox-w32-9731ca7611e19827702eb8c690fb6c3b37403319.tar.bz2 busybox-w32-9731ca7611e19827702eb8c690fb6c3b37403319.zip |
password utils: improve --help, make DEFAULT_PASSWD_ALGO visible if CHPASSWD
Was:
$ cryptpw --help
...
Print crypt(3) hashed PASSWORD
-P,--password-fd=N Read password from fd N
-m,--method=TYPE Encryption method
-S,--salt=SALT
User: "What methods exist? which one os default?"
Now:
Print crypt(3) hashed PASSWORD
-P,--password-fd N Read password from fd N
-m,--method TYPE des,md5,sha256/512 (default des)
-S,--salt SALT
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/usage.src.h')
-rw-r--r-- | include/usage.src.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 78beccf4d..00369dfb3 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -14,6 +14,14 @@ | |||
14 | 14 | ||
15 | #define NOUSAGE_STR "\b" | 15 | #define NOUSAGE_STR "\b" |
16 | 16 | ||
17 | #if !ENABLE_USE_BB_CRYPT || ENABLE_USE_BB_CRYPT_SHA | ||
18 | # define CRYPT_METHODS_HELP_STR "des,md5,sha256/512" \ | ||
19 | " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" | ||
20 | #else | ||
21 | # define CRYPT_METHODS_HELP_STR "des,md5" \ | ||
22 | " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" | ||
23 | #endif | ||
24 | |||
17 | INSERT | 25 | INSERT |
18 | 26 | ||
19 | #define busybox_notes_usage \ | 27 | #define busybox_notes_usage \ |