summaryrefslogtreecommitdiff
path: root/tests/dn2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dn2.c')
-rw-r--r--tests/dn2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dn2.c b/tests/dn2.c
index 8732939ac9..5c696f2301 100644
--- a/tests/dn2.c
+++ b/tests/dn2.c
@@ -89,6 +89,8 @@ void doit(void)
if (ret < 0)
fail("x509_crt_print %d\n", ret);
+/* When allowing SHA1, the output is different: no broken! string */
+#ifndef ALLOW_SHA1
if (out.size != strlen(info) ||
strcasecmp((char *) out.data, info) != 0) {
fprintf(stderr, "comparison fail (%d/%d)\nexpected: %s\n\n got: %.*s\n\n",
@@ -96,6 +98,7 @@ void doit(void)
out.data);
fail("comparison failed\n");
}
+#endif
gnutls_x509_crt_deinit(cert);
gnutls_global_deinit();