summaryrefslogtreecommitdiff
path: root/tests/simple.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-13 20:38:26 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-13 20:38:26 +0100
commit4160e1087f3ca75a306bd6afab68f45a0ef97124 (patch)
treeaf60d2db58e492e1ab3a8b496912fa36117835ae /tests/simple.c
parentae2540986ed3827540a14e88d717789c808ce243 (diff)
downloadgnutls-4160e1087f3ca75a306bd6afab68f45a0ef97124.tar.gz
Specify in detail what to be copied when resuming. It seems there
are extensions (like safe renegotiation) that do not need to read the stored values. Moreover this might overcome any bugs by the extensions that used to store pointers in the extension structure.
Diffstat (limited to 'tests/simple.c')
-rw-r--r--tests/simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/simple.c b/tests/simple.c
index 5f1645494e..a3774e5d6e 100644
--- a/tests/simple.c
+++ b/tests/simple.c
@@ -50,7 +50,7 @@ doit (void)
for (i = 0; algs[i]; i++)
{
- printf ("pk_list[%d] = %d = %s = %d\n", i, algs[i],
+ printf ("pk_list[%d] = %d = %s = %d\n", (int)i, algs[i],
gnutls_pk_algorithm_get_name (algs[i]),
gnutls_pk_get_id (gnutls_pk_algorithm_get_name (algs[i])));
if (gnutls_pk_get_id (gnutls_pk_algorithm_get_name (algs[i]))
@@ -76,7 +76,7 @@ doit (void)
for (i = 0; algs[i]; i++)
{
- printf ("sign_list[%d] = %d = %s = %d\n", i, algs[i],
+ printf ("sign_list[%d] = %d = %s = %d\n", (int)i, algs[i],
gnutls_sign_algorithm_get_name (algs[i]),
gnutls_sign_get_id (gnutls_sign_algorithm_get_name
(algs[i])));