diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-10 14:28:15 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-10 15:07:55 +0200 |
commit | edd04b610c1c83f26ed036569ad95b89a41fc558 (patch) | |
tree | 7ec7040b9ef612b36a399592c018c0a131ddfa75 /trust/extract-jks.c | |
parent | eca5a6e491f5f85ba1f06afcea3177c3442ae557 (diff) | |
download | p11-kit-edd04b610c1c83f26ed036569ad95b89a41fc558.tar.gz |
Add support for using freebl3 for SHA1 and MD5 hashing
Since we don't want to link freebl3 to libp11-kit.so where it isn't
needed, move the SHA-1 and MD5 digest functionality to the trust/
directory.
Diffstat (limited to 'trust/extract-jks.c')
-rw-r--r-- | trust/extract-jks.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/trust/extract-jks.c b/trust/extract-jks.c index 987ea26..8a39cfd 100644 --- a/trust/extract-jks.c +++ b/trust/extract-jks.c @@ -39,7 +39,7 @@ #include "compat.h" #include "debug.h" #include "extract.h" -#include "hash.h" +#include "digest.h" #include "message.h" #include "save.h" @@ -299,13 +299,13 @@ prepare_jks_buffer (P11KitIter *iter, * as the password for this keyed digest. */ length = buffer->len; - digest = p11_buffer_append (buffer, P11_HASH_SHA1_LEN); + digest = p11_buffer_append (buffer, P11_DIGEST_SHA1_LEN); return_val_if_fail (digest != NULL, false); - p11_hash_sha1 (digest, - "\000c\000h\000a\000n\000g\000e\000i\000t", 16, /* default password */ - "Mighty Aphrodite", 16, /* go figure */ - buffer->data, length, - NULL); + p11_digest_sha1 (digest, + "\000c\000h\000a\000n\000g\000e\000i\000t", 16, /* default password */ + "Mighty Aphrodite", 16, /* go figure */ + buffer->data, length, + NULL); return_val_if_fail (p11_buffer_ok (buffer), false); return true; |