From 37658ce90473565f4ccf37655a1056920ccbd4c3 Mon Sep 17 00:00:00 2001 From: Felix Palmen Date: Thu, 14 Mar 2024 08:09:13 +0100 Subject: [PATCH] security/pkcs11-helper: Fix build with libressl Approved by: portmgr (blanket, just-fix-it) --- .../pkcs11-helper/files/patch-lib_pkcs11h-openssl.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c index e27454eb3d28..99db16701bc0 100644 --- a/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c +++ b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c @@ -1,6 +1,6 @@ --- lib/pkcs11h-openssl.c.orig 2022-04-07 17:01:01 UTC +++ lib/pkcs11h-openssl.c -@@ -235,9 +235,13 @@ DSA_meth_set1_name (DSA_METHOD *meth, const char *name +@@ -235,9 +235,13 @@ DSA_meth_free (DSA_METHOD *meth) static int DSA_meth_set1_name (DSA_METHOD *meth, const char *name) { @@ -14,6 +14,15 @@ } #endif +@@ -330,7 +334,7 @@ static struct { + #endif + } __openssl_methods; + +-#if OPENSSL_VERSION_NUMBER < 0x10100001L ++#if OPENSSL_VERSION_NUMBER < 0x10100001L || defined(LIBRESSL_VERSION_NUMBER) + static + int + __pkcs11h_openssl_ex_data_dup ( @@ -341,12 +345,22 @@ __pkcs11h_openssl_ex_data_dup ( long argl, void *argp