From: Nikos Mavrogiannopoulos Date: Fri, 17 Feb 2017 14:31:02 +0000 (+0100) Subject: tests: ignore sanity checks in broken cert test X-Git-Tag: gnutls_3_6_0~996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1fe757e05fc45ea59b2b342717e9d7ad788abb;p=thirdparty%2Fgnutls.git 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 --- 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));