This patch addresses a build error for Postfix-3.4.28 and Postfix-3.5.18
with OpenSSL 1.0.2.
Undefined first referenced
symbol in file
EVP_MD_CTX_new ../../lib/libtls.a(tls_fprint.o)
EVP_MD_CTX_free ../../lib/libtls.a(tls_fprint.o)
The patch below fixes this for both Postfix versions.
Wietse
--- /var/tmp/postfix-3.5.18/src/tls/tls.h 2023-01-21 16:00:03.000000000
-0500
+++ src/tls/tls.h 2023-01-25 12:18:05.971798802 -0500
@@ -109,6 +109,8 @@
#define TLS_method SSLv23_method
#define TLS_client_method SSLv23_client_method
#define TLS_server_method SSLv23_server_method
+#define EVP_MD_CTX_new EVP_MD_CTX_create
+#define EVP_MD_CTX_free EVP_MD_CTX_destroy
#endif
/* Backwards compatibility with OpenSSL < 1.1.1 */