* crypt/crypt-private.h: Include stdbool.h.
commit4ba74a357376c8f8bf49487f96ae71cf2460c3f3
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 10 Oct 2012 10:05:10 +0000 (10 07:05 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 10 Oct 2012 10:05:10 +0000 (10 07:05 -0300)
tree785d54466a7b81a674cd69ee59c5e617f2d6101e
parent0e3b5d6a6859d74a18033d3a55e0ee92340437b3
* crypt/crypt-private.h: Include stdbool.h.
(_ufc_setup_salt_r): Return bool.
* crypt/crypt-entry.c: Include errno.h.
(__crypt_r): Return NULL with EINVAL for bad salt.
* crypt/crypt_util.c (bad_for_salt): New.
(_ufc_setup_salt_r): Check that salt is long enough and within
the specified alphabet.
* crypt/badsalttest.c: New file.
* crypt/Makefile (tests): Add it.
($(objpfx)badsalttest): New.
ChangeLog
crypt/Makefile
crypt/badsalttest.c [new file with mode: 0644]
crypt/crypt-entry.c
crypt/crypt-private.h
crypt/crypt_util.c