[Spice-commits] common/ssl_verify.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Jan 23 10:24:36 UTC 2018


 common/ssl_verify.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 122be3d1f75b2f83555acb712e5c5420c9b1d6a7
Author: Paweł Pękala <pawelbsd at gmail.com>
Date:   Tue Jan 23 09:08:32 2018 +0000

    Fix build with LibreSSL
    
    Some FreeBSD configurations can use LibreSSL instead of OpenSSL.
    The two libraries are really similar but need some minimal adjustment.
    
    Signed-off-by: Paweł Pękala <pawelbsd at gmail.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index a9ed650..27aa5d3 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -33,7 +33,7 @@
 #include <string.h>
 #include <gio/gio.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000
+#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