ASN1_STRING_get0_data() has been available since 2.8.x. So only force
antediluvian versions of LibreSSL to use ASN1_STRING_data(). This has
been deprecated since forever and will be removed from libcrypto soon.
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/exim/Makefile,v
diff -u -p -r1.157 Makefile
--- Makefile 18 Dec 2025 21:39:26 -0000 1.157
+++ Makefile 21 Jan 2026 07:37:33 -0000
@@ -6,6 +6,7 @@ DISTNAME = exim-${VERSION}
PKGNAME-main = exim-${VERSION}
FULLPKGNAME-eximon = exim-eximon-${VERSION}
FULLPKGPATH-eximon = ${PKGPATH},-eximon
+REVISION-main = 0
CATEGORIES = mail
Index: patches/patch-src_tlscert-openssl_c
===================================================================
RCS file: patches/patch-src_tlscert-openssl_c
diff -N patches/patch-src_tlscert-openssl_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_tlscert-openssl_c 21 Jan 2026 07:38:04 -0000
@@ -0,0 +1,12 @@
+Index: src/tlscert-openssl.c
+--- src/tlscert-openssl.c.orig
++++ src/tlscert-openssl.c
+@@ -29,7 +29,7 @@ library. It is #included into the tls.c file when that
+ # endif
+ #endif
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER)
&& LIBRESSL_VERSION_NUMBER < 0x2090000fL)
+ # define ASN1_STRING_get0_data ASN1_STRING_data
+ #endif
+