[openssh-commits] [openssh] 01/03: put back SSLeay_version compat in configure test

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Mar 24 15:26:34 AEDT 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit b7e27cfd7f163fc16b4c5d041cc28ee488a5eeec
Author: Damien Miller <djm at mindrot.org>
Date:   Fri Mar 24 15:21:18 2023 +1100

    put back SSLeay_version compat in configure test
    
    Needed to detect old versions and give good "your version is bad"
    messages at configure time; spotted by dtucker@
---
 configure.ac | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1c0ccdf1..07893e87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2803,7 +2803,16 @@ if test "x$openssl" = "xyes" ; then
 	#define DATA "conftest.ssllibver"
 		]], [[
 		FILE *f;
-
+		/* We need these legacy bits to warn for old libcrypto */
+		#ifndef OPENSSL_VERSION
+		# define OPENSSL_VERSION SSLEAY_VERSION
+		#endif
+		#ifndef HAVE_OPENSSL_VERSION
+		# define OpenSSL_version       SSLeay_version
+		#endif
+		#ifndef HAVE_OPENSSL_VERSION_NUM
+		# define OpenSSL_version_num   SSLeay
+		#endif
 		if ((f = fopen(DATA, "w")) == NULL)
 			exit(1);
 		if (fprintf(f, "%08lx (%s)",

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list