diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-05-01 20:09:44 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-18 15:27:48 -0400 |
commit | a15b93a1cb46a4d91666f3b6de2337eb693e833b (patch) | |
tree | c81a67c933c5d9b92ca1ed69a709b0e0f46eba04 /server/util/nss_sha512crypt.h | |
parent | 2011c5c332083582d6b0dc8424dfc794a8f06cca (diff) | |
download | sssd-a15b93a1cb46a4d91666f3b6de2337eb693e833b.tar.gz sssd-a15b93a1cb46a4d91666f3b6de2337eb693e833b.tar.bz2 sssd-a15b93a1cb46a4d91666f3b6de2337eb693e833b.zip |
Fix crypt functions to not use static buffers.
Also fix style, clarify, and simplify some logic.
Diffstat (limited to 'server/util/nss_sha512crypt.h')
-rw-r--r-- | server/util/nss_sha512crypt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/util/nss_sha512crypt.h b/server/util/nss_sha512crypt.h index 0d063217..5512c5d9 100644 --- a/server/util/nss_sha512crypt.h +++ b/server/util/nss_sha512crypt.h @@ -1,3 +1,4 @@ -char * nss_sha512_crypt (const char *key, const char *salt); -char *gen_salt(void); +int s3crypt_sha512(TALLOC_CTX *mmectx, + const char *key, const char *salt, char **_hash); +int s3crypt_gen_salt(TALLOC_CTX *memctx, char **_salt); |