aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2022-10-20 14:40:09 +0000
committerAlex Dupre <ale@FreeBSD.org>2022-10-20 14:42:10 +0000
commit371278e7b66943021159dbfa2c8f77c3ecafcc14 (patch)
tree11051c4d09d036b877d5b59b9d28656e1071c8dc
parent2c3a54645b0e3d1735134145593b4db53fcfa621 (diff)
downloadports-371278e7b66943021159dbfa2c8f77c3ecafcc14.tar.gz
ports-371278e7b66943021159dbfa2c8f77c3ecafcc14.zip
security/pkcs11-helper: fix build with LibreSSL 3.5
Differential Revision: https://reviews.freebsd.org/D37053
-rw-r--r--security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c
new file mode 100644
index 000000000000..e0bc64247fc7
--- /dev/null
+++ b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c
@@ -0,0 +1,16 @@
+--- lib/pkcs11h-openssl.c.orig 2022-10-20 14:36:14 UTC
++++ lib/pkcs11h-openssl.c
+@@ -235,9 +235,13 @@ DSA_meth_free (DSA_METHOD *meth)
+ static int
+ DSA_meth_set1_name (DSA_METHOD *meth, const char *name)
+ {
++#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L)
++ return 0;
++#else
+ CK_RV rv;
+ rv = _pkcs11h_mem_strdup ((void *)&meth->name, name);
+ return rv == CKR_OK ? 1 : 0;
++#endif
+ }
+ #endif
+