crypto_sha512crypt.c is a clone of nss_sha512crypt.c with the exception that all usage of
NSS and related libraries has been switched to libcrypto. I renamed nss_sha512crypt.h to
sha512crypt.h since it is common to both crypto_sha512crypt.c and nss_sha512crypt.c. Note
that the random number generator is not seeded manually and thus relies on seeding done
automatically by libcrypto. On some systems without /dev/urandom seeding may not be
performed. See
http://www.openssl.org/docs/crypto/RAND_add.html.
Signed-off-by: George McCollister <georgem(a)novatech-llc.com>
---
server/Makefile.am | 28 ++-
server/configure.ac | 14 +-
server/db/sysdb_ops.c | 2 +-
server/responder/pam/pam_LOCAL_domain.c | 2 +-
server/util/crypto_sha512crypt.c | 380 +++++++++++++++++++++++++++++++
server/util/nss_sha512crypt.h | 4 -
server/util/sha512crypt.h | 4 +
7 files changed, 423 insertions(+), 11 deletions(-)
create mode 100644 server/util/crypto_sha512crypt.c
delete mode 100644 server/util/nss_sha512crypt.h
create mode 100644 server/util/sha512crypt.h