summaryrefslogtreecommitdiff
path: root/mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2024-06-10 15:20:12 +0900
committerYasuhiro Kimura <yasu@FreeBSD.org>2024-06-10 15:20:12 +0900
commitd754a77ccf5b313a754473501e39234d9034b32c (patch)
tree2a5b32e4f78d41d3a316a8d9b47ab012b23b0ba1 /mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c
parentgraphics/fotocx: the port had been updated to version 24.40. (diff)
mail/opendkim-devel: Add new port
* Add mail/opendkim-devel, development snapshot of OpenDKIM. * Mark mail/opendkim and mail/opendkim-devel as CONFLICTS_INSTALL with each other
Diffstat (limited to 'mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c')
-rw-r--r--mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c b/mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c
new file mode 100644
index 000000000000..b0c9326a78a5
--- /dev/null
+++ b/mail/opendkim-devel/files/patch-opendkim_opendkim-crypto.c
@@ -0,0 +1,20 @@
+--- opendkim/opendkim-crypto.c.orig 2022-12-30 01:52:49 UTC
++++ opendkim/opendkim-crypto.c
+@@ -221,7 +221,7 @@ dkimf_crypto_free_id(void *ptr)
+ {
+ assert(pthread_setspecific(id_key, ptr) == 0);
+
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER))
+ OPENSSL_thread_stop();
+ #else
+ ERR_remove_state(0);
+@@ -399,7 +399,7 @@ dkimf_crypto_free(void)
+ {
+ if (crypto_init_done)
+ {
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER))
+ OPENSSL_thread_stop();
+ #else
+ CRYPTO_cleanup_all_ex_data();