summaryrefslogtreecommitdiff
path: root/tests/pkcs12_s2k.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-16 11:13:21 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-03 19:41:29 +0200
commite9966796a52634c40155e3e14cc02741a72f26fa (patch)
tree9452416aa423b9e7ee7765b48c8068010e0588bd /tests/pkcs12_s2k.c
parent4e825733ffc13cecd5c550ee3fee6b4607ebe19d (diff)
downloadgnutls-e9966796a52634c40155e3e14cc02741a72f26fa.tar.gz
Updated self tests and examples to avoid using deprecated functions such as
gnutls_certificate_server_set_retrieve_function and the sign callback.
Diffstat (limited to 'tests/pkcs12_s2k.c')
-rw-r--r--tests/pkcs12_s2k.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pkcs12_s2k.c b/tests/pkcs12_s2k.c
index 81ce3283b9..671a44bddd 100644
--- a/tests/pkcs12_s2k.c
+++ b/tests/pkcs12_s2k.c
@@ -133,12 +133,12 @@ doit (void)
fail ("_gnutls_pkcs12_string_to_key failed[0]: %d\n", rc);
if (strcmp (_gnutls_bin2hex (key, sizeof (key),
- tmp, sizeof (tmp)), values[x]) != 0)
+ tmp, sizeof (tmp), NULL), values[x]) != 0)
fail ("_gnutls_pkcs12_string_to_key failed[1]\n");
if (debug)
printf ("ij: %d.%d: %s\n", i, j,
- _gnutls_bin2hex (key, sizeof (key), tmp, sizeof (tmp)));
+ _gnutls_bin2hex (key, sizeof (key), tmp, sizeof (tmp), NULL));
x++;
}
}
@@ -154,13 +154,13 @@ doit (void)
fail ("_gnutls_pkcs12_string_to_key failed[2]: %d\n", rc);
if (memcmp (_gnutls_bin2hex (key, tv[i].keylen,
- tmp, sizeof (tmp)),
+ tmp, sizeof (tmp), NULL),
tv[i].key, tv[i].keylen) != 0)
fail ("_gnutls_pkcs12_string_to_key failed[3]\n");
if (debug)
printf ("tv[%d]: %s\n", i,
- _gnutls_bin2hex (key, tv[i].keylen, tmp, sizeof (tmp)));
+ _gnutls_bin2hex (key, tv[i].keylen, tmp, sizeof (tmp), NULL));
}
if (debug)
printf ("\n");