summaryrefslogtreecommitdiff
path: root/app-emulation/spice/files/spice-0.14.0-libressl_fix.patch
blob: 2f77fa5a000679bd65bb88cbeab1de35cb9d89e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/spice-common/common/ssl_verify.c b/spice-common/common/ssl_verify.c
index a9ed650..27aa5d3 100644
--- a/spice-common/common/ssl_verify.c
+++ b/spice-common/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);