simplify crypt_checkpass. The API promise is that this function doesn't
authortedu <tedu@openbsd.org>
Wed, 24 Dec 2014 22:10:34 +0000 (22:10 +0000)
committertedu <tedu@openbsd.org>
Wed, 24 Dec 2014 22:10:34 +0000 (22:10 +0000)
commitaf808b3f20e1ab1f31409a978e9420cbbddfad1e
tree5fd44c049a72771cb55eecca1e670cd96a833f65
parent04b9d67f1af54a733090f034636f37e1234b084a
simplify crypt_checkpass. The API promise is that this function doesn't
use global data. The simplest fix is to only check blowfish passwords,
and implicitly lock out DES passwords.
crypt_checkpass is currently only used in one place, passwd, to verify
the local user's password, so this is probably acceptable.
Gives people a little more time to migrate away from DES before introduing
checkpass into more places.
lib/libc/crypt/cryptutil.c