]> granicus.if.org Git - linux-pam/commit
pam_unix: Add support for crypt_checksalt, if libcrypt supports it.
authorBjörn Esser <besser82@fedoraproject.org>
Thu, 15 Nov 2018 18:49:44 +0000 (19:49 +0100)
committerTomáš Mráz <t8m@users.noreply.github.com>
Thu, 22 Nov 2018 14:43:38 +0000 (15:43 +0100)
commit4da9febc39b955892a30686e8396785b96bb8ba5
tree9805a4c4573ca20a6568ca358e574d4cdbfd289c
parentdce80b3f11b3c3aa137d18f22699809094dd64b6
pam_unix: Add support for crypt_checksalt, if libcrypt supports it.

libxcrypt v4.3 has added the crypt_checksalt function to whether
the prefix at the begining of a given hash string refers to a
supported hashing method.

Future revisions of this function will add support to check whether
the hashing method, the prefix refers to, was disabled or considered
deprecated by the system's factory presets or system administrator.
Furthermore it will be able to detect whether the parameters, which
are used by the corresponding hashing method, being encoded in the
hash string are not considered to be strong enough anymore.

*modules/pam_unix/passverify.c: Add support for crypt_checksalt.
modules/pam_unix/passverify.c