diff options
author | George McCollister <georgem@novatech-llc.com> | 2010-02-04 11:07:34 -0600 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-05 09:43:42 -0500 |
commit | 63be61852bd7ad1f74569843fb90629d63adb591 (patch) | |
tree | 04ef03c32be11507365d3c348cf28fb2d8ac3531 /server/util/nss_sha512crypt.h | |
parent | d61d37ed5c7cc51f1106fe3105c3cf226cc10277 (diff) | |
download | sssd-63be61852bd7ad1f74569843fb90629d63adb591.tar.gz sssd-63be61852bd7ad1f74569843fb90629d63adb591.tar.bz2 sssd-63be61852bd7ad1f74569843fb90629d63adb591.zip |
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 <georgem@novatech-llc.com>
Diffstat (limited to 'server/util/nss_sha512crypt.h')
-rw-r--r-- | server/util/nss_sha512crypt.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/server/util/nss_sha512crypt.h b/server/util/nss_sha512crypt.h deleted file mode 100644 index 5512c5d9..00000000 --- a/server/util/nss_sha512crypt.h +++ /dev/null @@ -1,4 +0,0 @@ - -int s3crypt_sha512(TALLOC_CTX *mmectx, - const char *key, const char *salt, char **_hash); -int s3crypt_gen_salt(TALLOC_CTX *memctx, char **_salt); |