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@
This commit is contained in:
Damien Miller 2023-03-24 15:21:18 +11:00
parent 7280401bdd
commit b7e27cfd7f
No known key found for this signature in database
1 changed files with 10 additions and 1 deletions

View File

@ -2803,7 +2803,16 @@ if test "x$openssl" = "xyes" ; then
#define DATA "conftest.ssllibver" #define DATA "conftest.ssllibver"
]], [[ ]], [[
FILE *f; 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) if ((f = fopen(DATA, "w")) == NULL)
exit(1); exit(1);
if (fprintf(f, "%08lx (%s)", if (fprintf(f, "%08lx (%s)",