[Spice-devel] [PATCH spice-common] Fix build with LibreSSL

Frediano Ziglio fziglio at redhat.com
Tue Jan 23 09:09:41 UTC 2018


From: Paweł Pękala <pawelbsd at gmail.com>

FreeBSD uses 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>
---
 common/ssl_verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.14.3



More information about the Spice-devel mailing list