From 63be61852bd7ad1f74569843fb90629d63adb591 Mon Sep 17 00:00:00 2001 From: George McCollister Date: Thu, 4 Feb 2010 11:07:34 -0600 Subject: Added option to use libcrypto instead of NSS. 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 --- server/db/sysdb_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/db') diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c index 8dd81b3c0..ccb581591 100644 --- a/server/db/sysdb_ops.c +++ b/server/db/sysdb_ops.c @@ -21,7 +21,7 @@ #include "util/util.h" #include "db/sysdb_private.h" -#include "util/nss_sha512crypt.h" +#include "util/sha512crypt.h" #include static int add_string(struct ldb_message *msg, int flags, -- cgit