diff options
author | Denys Vlasenko | 2017-01-20 19:47:49 +0100 |
---|---|---|
committer | Denys Vlasenko | 2017-01-20 19:47:49 +0100 |
commit | 9731ca7611e19827702eb8c690fb6c3b37403319 (patch) | |
tree | 703d8fbaf75e872fca83ca1e57e830eaeff1aace /include | |
parent | 38972a8df1df970a5878bbd7fc5ef6259f1168ab (diff) | |
download | busybox-9731ca7611e19827702eb8c690fb6c3b37403319.zip busybox-9731ca7611e19827702eb8c690fb6c3b37403319.tar.gz |
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')
-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 78beccf..00369df 100644 --- a/include/usage.src.h +++ b/include/usage.src.h @@ -14,6 +14,14 @@ #define NOUSAGE_STR "\b" +#if !ENABLE_USE_BB_CRYPT || ENABLE_USE_BB_CRYPT_SHA +# define CRYPT_METHODS_HELP_STR "des,md5,sha256/512" \ + " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" +#else +# define CRYPT_METHODS_HELP_STR "des,md5" \ + " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" +#endif + INSERT #define busybox_notes_usage \ |