summaryrefslogtreecommitdiff
path: root/tests/resume.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-25 12:20:31 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-25 12:20:31 +0300
commit85c1f73190a6b1b23b877637a22a4b4098def6b7 (patch)
tree1e36909d0c8ca9b8369b7e918d4e8eb7c3200774 /tests/resume.c
parent4c3628c5fc7bb9b7f0a549151819dd82e898882b (diff)
downloadgnutls-85c1f73190a6b1b23b877637a22a4b4098def6b7.tar.gz
Try 3 resumption attempts and try also session db and ticket.
Diffstat (limited to 'tests/resume.c')
-rw-r--r--tests/resume.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/resume.c b/tests/resume.c
index fda40013d9..262d888a9f 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -72,17 +72,18 @@ struct params_res
pid_t child;
struct params_res resume_tests[] = {
- {"try to resume from db", 50, 0, 0, 1},
+ {"try to resume from db", 1, 0, 0, 1},
{"try to resume from session ticket", 0, 1, 1, 1},
{"try to resume from session ticket (server only)", 0, 1, 0, 0},
{"try to resume from session ticket (client only)", 0, 0, 1, 0},
+ {"try to resume from db and ticket", 1, 1, 1, 1},
{NULL, -1}
};
/* A very basic TLS client, with anonymous authentication.
*/
-#define SESSIONS 2
+#define SESSIONS 3
#define MAX_BUF 5*1024
#define MSG "Hello TLS"
@@ -138,7 +139,6 @@ client (int sds[], struct params_res *params)
/* if this is not the first time we connect */
gnutls_session_set_data (session, session_data.data,
session_data.size);
- gnutls_free (session_data.data);
}
gnutls_transport_set_int (session, sd);
@@ -226,6 +226,7 @@ client (int sds[], struct params_res *params)
gnutls_deinit (session);
}
+ gnutls_free (session_data.data);
end:
gnutls_anon_free_client_credentials (anoncred);