summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-17 15:31:02 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-17 17:26:38 +0100
commitfa1fe757e05fc45ea59b2b342717e9d7ad788abb (patch)
treeece7a3ce0462431c0fa3f180cf50e04b9b885942
parentd4a55a39ea022a12e12c51f217a590642277af76 (diff)
downloadgnutls-fa1fe757e05fc45ea59b2b342717e9d7ad788abb.tar.gz
tests: ignore sanity checks in broken cert test
This allows the existing reproducers which contain certificates which are rejected by sanity checks, to still be used to detect regressions. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--tests/cert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cert.c b/tests/cert.c
index d92a090c7a..da0ab23df4 100644
--- a/tests/cert.c
+++ b/tests/cert.c
@@ -116,6 +116,8 @@ void doit(void)
if (ret < 0)
fail("crt_init %d\n", ret);
+ gnutls_x509_crt_set_flags(cert, GNUTLS_X509_CRT_FLAG_IGNORE_SANITY);
+
ret = gnutls_x509_crt_import(cert, &der, GNUTLS_X509_FMT_DER);
if (ret != exp_ret) {
fail("crt_import %s\n", gnutls_strerror(ret));