freebsd-skq/lib/libcrypt
des e6829c4aea r261913 broke DES passwords, because the only way they could work,
since they don't have an easily recognizable signature, was if they
were the default.  This commit rewrites crypt_set_format(3) etc to
address this:

 - Use a pointer instead of an index to identify the default format.
   This pointer is initialized at compile time to point to the first
   first element in the list of supported formats, eliminating the
   need for crypt_setdefault().  Using a pointer also simplifies
   iterating through the list.

 - Associate DES with the magic string "_", which takes care of the
   Extended DES format.

 - Finally, as a special case, if the salt does not match any known
   magic string but matches ^[./0-9A-Za-z]{13}$, it is assumed to be a
   DES password and is passed on to crypt_des().

MFC after:	1 week
2014-04-26 11:50:25 +00:00
..
tests Make bsd.test.mk the only public mk fragment for the building of tests. 2014-03-14 08:56:19 +00:00
crypt-md5.c
crypt-nthash.c
crypt-sha256.c
crypt-sha512.c
crypt.3 various formating fixes, use NUL for NUL bytes.. 2014-03-09 07:45:59 +00:00
crypt.c r261913 broke DES passwords, because the only way they could work, 2014-04-26 11:50:25 +00:00
crypt.h
Makefile replace the kernel's version w/ cperciva's implementation... In all 2014-03-16 01:43:23 +00:00
misc.c