summaryrefslogtreecommitdiff
path: root/tests/pkcs12_s2k.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-10 11:26:34 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-10 12:08:18 +0200
commit91013027a81f485c10938c8f5069f773fbd2bd78 (patch)
tree903058bd833ee50af8e071c2f3be5dee86514fb4 /tests/pkcs12_s2k.c
parent61fbee093ad5c8e0907dd72362a6e3d098507b33 (diff)
downloadgnutls-91013027a81f485c10938c8f5069f773fbd2bd78.tar.gz
tests: updated string to keys tests for new internal API
Diffstat (limited to 'tests/pkcs12_s2k.c')
-rw-r--r--tests/pkcs12_s2k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pkcs12_s2k.c b/tests/pkcs12_s2k.c
index 0d11c293c6..847aa9a4f3 100644
--- a/tests/pkcs12_s2k.c
+++ b/tests/pkcs12_s2k.c
@@ -118,7 +118,7 @@ void doit(void)
x = 0;
for (i = 1; i < 4; i++) {
for (j = 0; j < 3; j++) {
- rc = _gnutls_pkcs12_string_to_key(i, salt[j],
+ rc = _gnutls_pkcs12_string_to_key(mac_to_entry(GNUTLS_MAC_SHA1), i, salt[j],
strlen((char *)
salt[j]),
j + i + 15,
@@ -145,7 +145,7 @@ void doit(void)
printf("\n");
for (i = 0; i < sizeof(tv) / sizeof(tv[0]); i++) {
- rc = _gnutls_pkcs12_string_to_key(tv[i].id, tv[i].salt, 8,
+ rc = _gnutls_pkcs12_string_to_key(mac_to_entry(GNUTLS_MAC_SHA1), tv[i].id, tv[i].salt, 8,
tv[i].iter,
tv[i].password,
tv[i].keylen, key);