void-packages/srcpkgs/qca-qt5/patches/libressl.patch
2019-12-13 00:05:34 +01:00

33 lines
1 KiB
Diff

--- plugins/qca-ossl/ossl110-compat.h 2019-04-24 14:58:14.000000000 +0200
+++ - 2019-11-19 04:28:55.887108555 +0100
@@ -25,7 +25,7 @@
#include <openssl/rsa.h>
#include <openssl/dsa.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#define RSA_F_RSA_METH_DUP 161
static void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
--- plugins/qca-ossl/qca-ossl.cpp 2019-04-24 14:58:14.000000000 +0200
+++ - 2019-11-19 04:29:29.745309997 +0100
@@ -57,7 +57,7 @@
((_STACK*) (1 ? p : (type*)0))
#endif
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#define OSSL_110
#endif
--- plugins/qca-ossl/qca-ossl.cpp 2019-11-19 04:29:30.804925040 +0100
+++ - 2019-11-19 04:30:35.947007237 +0100
@@ -3826,7 +3826,7 @@
p.policies = get_cert_policies(ex);
}
-#ifdef OSSL_110
+#if defined(OSSL_110) || defined(LIBRESSL_VERSION_NUMBER)
const
#endif
ASN1_BIT_STRING *signature;