void-packages/srcpkgs/spice/patches/libressl.patch

12 lines
449 B
Diff

--- spice-common/common/ssl_verify.c.orig 2017-08-03 11:57:02.149307232 +0200
+++ spice-common/common/ssl_verify.c 2017-08-03 11:57:29.209630642 +0200
@@ -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);