mail/exim has a big tangle of compatibility layers for old openssl
versions and libressl.  The result is that it uses its own version of
SSL_CIPHER_get_id() when compiled with libressl (being an OpenSSL 1.0.1
API, this has always been available).

This will soon break since we are going to make SSL_CIPHER opaque.
The following diff makes exim use the libssl version of
SSL_CIPHER_get_id() instead.

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/exim/Makefile,v
retrieving revision 1.135
diff -u -p -r1.135 Makefile
--- Makefile    4 May 2021 15:48:53 -0000       1.135
+++ Makefile    5 May 2021 13:19:01 -0000
@@ -8,7 +8,7 @@ DISTNAME =              exim-${VERSION}
 PKGNAME-main =         exim-${VERSION}
 FULLPKGNAME-eximon =   exim-eximon-${VERSION}
 FULLPKGPATH-eximon =   ${PKGPATH},-eximon
-REVISION-main =                0
+REVISION-main =                1
 
 CATEGORIES =           mail
 
@@ -90,6 +90,8 @@ EXIM_EXTRA_LIBS +=    -L${LOCALBASE}/lib -l
 LIB_DEPENDS-main +=    security/cyrus-sasl2
 WANTLIB-main +=                sasl2
 .endif
+
+CFLAGS +=              -DEXIM_HAVE_OPENSSL_CIPHER_GET_ID
 
 # Needed to build with base-gcc
 .if !${PROPERTIES:Mclang}

Reply via email to