]> git.ipfire.org Git - thirdparty/squid.git/commit
basic_nis_auth: fail authentication on crypt() failures
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 19 Feb 2015 02:50:51 +0000 (18:50 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 19 Feb 2015 02:50:51 +0000 (18:50 -0800)
commit1ea677a6251194950bf0d82901fc87e1be5e6a38
treefcbfce578508aa2df26cab61b561614ccd03883f
parentb643cd09fe7732491eaababb64dfc1fca67d33c1
basic_nis_auth: fail authentication on crypt() failures

... instead of crashing the helper.

"
Starting with glibc 2.17 (eglibc 2.17), crypt() fails with EINVAL (w/
NULL return) if the salt violates specifications. Additionally, on
FIPS-140 enabled Linux systems, DES or MD5 encrypted passwords passed to
crypt() fail with EPERM (w/ NULL return).
"
helpers/basic_auth/NIS/basic_nis_auth.cc