diff options
author | Björn Esser <besser82@fedoraproject.org> | 2018-11-15 15:58:56 +0100 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2018-11-22 15:17:55 +0100 |
commit | dce80b3f11b3c3aa137d18f22699809094dd64b6 (patch) | |
tree | de1b607e79bdf720dbade2a14e4c23cbe95dc73f /modules/pam_unix/pam_unix_passwd.c | |
parent | 8eaf5570cf011148a0b55c53570df5edaafebdb0 (diff) | |
download | pam-dce80b3f11b3c3aa137d18f22699809094dd64b6.tar.gz pam-dce80b3f11b3c3aa137d18f22699809094dd64b6.tar.bz2 pam-dce80b3f11b3c3aa137d18f22699809094dd64b6.zip |
pam_unix: Prefer a gensalt function, that supports auto entropy.
* modules/pam_unix/pam_unix_passwd.c: Initialize rounds parameter to 0.
* modules/pam_unix/passverify.c: Prefer gensalt with auto entropy.
* modules/pam_unix/support.c: Fix sanitizing of rounds parameter.
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 9d0aa733..f2c42513 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -603,7 +603,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) unsigned int ctrl, lctrl; int retval; int remember = -1; - int rounds = -1; + int rounds = 0; int pass_min_len = 0; /* <DO NOT free() THESE> */ |