[Spice-commits] 2 commits -

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 26 17:31:29 UTC 2018


 0 files changed

New commits:
commit 8e8476d932d9866d950fe616fe1c10361b75a3a2
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Jun 21 06:45:38 2018 +0100

    ssl_verify: Fix build for newer LibreSSL
    
    LibreSSL 2.7 defines ASN1_STRING_get0_data, like OpenSSL 1.1.
    This fixes https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229044.
    Original patch from Piotr Kubaj.
    
    Reported-by: Jack L. <xxjack12xx at gmail.com>
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index 27aa5d3..0ac00a6 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -33,7 +33,8 @@
 #include <string.h>
 #include <gio/gio.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || \
+    (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
 static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
 {
     return M_ASN1_STRING_data(asn1);
commit 3f04e2649d28d10041af9d28934cd7a1a9988754
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Jun 26 18:25:41 2018 +0100

    Revert "ssl_verify: Fix build for newer LibreSSL"
    
    This reverts commit 638c77f3e67e84d9ee29839c98d153b5bfdb1af8.
    Commit had a misleading comment.

diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index 0ac00a6..27aa5d3 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -33,8 +33,7 @@
 #include <string.h>
 #include <gio/gio.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000 || \
-    (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
 static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
 {
     return M_ASN1_STRING_data(asn1);


More information about the Spice-commits mailing list