]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
put back SSLeay_version compat in configure test
authorDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:21:18 +0000 (15:21 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:26:26 +0000 (15:26 +1100)
Needed to detect old versions and give good "your version is bad"
messages at configure time; spotted by dtucker@

configure.ac

index 1c0ccdf19c520c23642e7eed49e13109f1d4489e..07893e870659d2b96f196b4861f416cd98fae072 100644 (file)
@@ -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)",