|
Daniel P. Berrange |
10b7d2 |
From 93c2b9d2f01e878ed86566620130089aba61580f Mon Sep 17 00:00:00 2001
|
|
Daniel P. Berrange |
10b7d2 |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
Daniel P. Berrange |
10b7d2 |
Date: Mon, 5 Dec 2016 11:47:04 +0000
|
|
Daniel P. Berrange |
10b7d2 |
Subject: [PATCH] tests: blacklist gnutls 3.5.6 for wildcard tests
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
GNUTLS 3.5.6 broke wildcard support by reversing the
|
|
Daniel P. Berrange |
10b7d2 |
fields in the reported dname. This regression will
|
|
Daniel P. Berrange |
10b7d2 |
be fixed in 3.5.7, so rather than workaround it in
|
|
Daniel P. Berrange |
10b7d2 |
libvirt we just blacklist that version
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
https://lists.gnupg.org/pipermail/gnutls-devel/2016-November/008224.html
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Daniel P. Berrange |
10b7d2 |
---
|
|
Daniel P. Berrange |
10b7d2 |
tests/virnettlssessiontest.c | 9 +++++++++
|
|
Daniel P. Berrange |
10b7d2 |
1 file changed, 9 insertions(+)
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
diff --git a/tests/virnettlssessiontest.c b/tests/virnettlssessiontest.c
|
|
Daniel P. Berrange |
10b7d2 |
index 0d2e106..b146072 100644
|
|
Daniel P. Berrange |
10b7d2 |
--- a/tests/virnettlssessiontest.c
|
|
Daniel P. Berrange |
10b7d2 |
+++ b/tests/virnettlssessiontest.c
|
|
Daniel P. Berrange |
10b7d2 |
@@ -374,6 +374,14 @@ mymain(void)
|
|
Daniel P. Berrange |
10b7d2 |
DO_SESS_TEST(cacertreq.filename, servercertalt2req.filename, clientcertreq.filename,
|
|
Daniel P. Berrange |
10b7d2 |
false, false, "wiki.libvirt.org", NULL);
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
+#if GNUTLS_VERSION_NUMBER != 0x030506
|
|
Daniel P. Berrange |
10b7d2 |
+ /*
|
|
Daniel P. Berrange |
10b7d2 |
+ * GNUTLS 3.5.6 broke wildcard support by reversing the
|
|
Daniel P. Berrange |
10b7d2 |
+ * fields in the reported dname. This regression will
|
|
Daniel P. Berrange |
10b7d2 |
+ * be fixed in 3.5.7, so rather than workaround it in
|
|
Daniel P. Berrange |
10b7d2 |
+ * libvirt we just blacklist that version
|
|
Daniel P. Berrange |
10b7d2 |
+ * https://lists.gnupg.org/pipermail/gnutls-devel/2016-November/008224.html
|
|
Daniel P. Berrange |
10b7d2 |
+ */
|
|
Daniel P. Berrange |
10b7d2 |
const char *const wildcards1[] = {
|
|
Daniel P. Berrange |
10b7d2 |
"C=UK,CN=dogfood",
|
|
Daniel P. Berrange |
10b7d2 |
NULL,
|
|
Daniel P. Berrange |
10b7d2 |
@@ -412,6 +420,7 @@ mymain(void)
|
|
Daniel P. Berrange |
10b7d2 |
false, false, "libvirt.org", wildcards5);
|
|
Daniel P. Berrange |
10b7d2 |
DO_SESS_TEST(cacertreq.filename, servercertreq.filename, clientcertreq.filename,
|
|
Daniel P. Berrange |
10b7d2 |
false, false, "libvirt.org", wildcards6);
|
|
Daniel P. Berrange |
10b7d2 |
+#endif
|
|
Daniel P. Berrange |
10b7d2 |
|
|
Daniel P. Berrange |
10b7d2 |
TLS_ROOT_REQ(cacertrootreq,
|
|
Daniel P. Berrange |
10b7d2 |
"UK", "libvirt root", NULL, NULL, NULL, NULL,
|
|
Daniel P. Berrange |
10b7d2 |
--
|
|
Daniel P. Berrange |
10b7d2 |
2.9.3
|
|
Daniel P. Berrange |
10b7d2 |
|