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/util/sha512crypt.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 server/util/sha512crypt.h (limited to 'server/util/sha512crypt.h') diff --git a/server/util/sha512crypt.h b/server/util/sha512crypt.h new file mode 100644 index 000000000..5512c5d96 --- /dev/null +++ b/server/util/sha512crypt.h @@ -0,0 +1,4 @@ + +int s3crypt_sha512(TALLOC_CTX *mmectx, + const char *key, const char *salt, char **_hash); +int s3crypt_gen_salt(TALLOC_CTX *memctx, char **_salt); -- cgit