summaryrefslogtreecommitdiff
path: root/tests/mini-x509-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mini-x509-2.c')
-rw-r--r--tests/mini-x509-2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mini-x509-2.c b/tests/mini-x509-2.c
index 8badfc1ecb..e20d45b7ff 100644
--- a/tests/mini-x509-2.c
+++ b/tests/mini-x509-2.c
@@ -303,6 +303,8 @@ void start(const char *prio)
exit(1);
}
gnutls_free(scert.data);
+
+ assert(gnutls_certificate_type_get(server)==GNUTLS_CRT_X509);
}
/* check gnutls_certificate_get_ours() - client side */
@@ -336,6 +338,8 @@ void start(const char *prio)
exit(1);
}
gnutls_free(ccert.data);
+
+ assert(gnutls_certificate_type_get(client)==GNUTLS_CRT_X509);
}
/* check the number of certificates received */