summaryrefslogtreecommitdiff
path: root/tests/resume.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/resume.c')
-rw-r--r--tests/resume.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/resume.c b/tests/resume.c
index 5e545cc658..3ce3e293c1 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -391,6 +391,9 @@ static void verify_server_params(gnutls_session_t session, unsigned counter, str
#if defined(USE_X509)
unsigned int l;
+ if (gnutls_certificate_type_get(session) != GNUTLS_CRT_X509)
+ fail("did not find the expected X509 certificate type! (%d)\n", gnutls_certificate_type_get(session));
+
if (counter == 0 && gnutls_certificate_get_ours(session) == NULL)
fail("no certificate returned on server side (%s)\n", counter?"resumed session":"first session");
else if (counter != 0 && gnutls_certificate_get_ours(session) != NULL)