]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl: define HAVE_OPENSSL_VERSION for OpenSSL 1.1.0+
authorJay Satiro <raysatiro@yahoo.com>
Wed, 15 Dec 2021 19:45:34 +0000 (14:45 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 16 Dec 2021 18:49:52 +0000 (13:49 -0500)
commit79d6057f1bb4e24b3d86102e27a64693af1eafff
tree3521ecf681943782f76cba29e606df388c49f564
parentcb26b2c7a7622946e9c40f60cb2915d362a0d651
openssl: define HAVE_OPENSSL_VERSION for OpenSSL 1.1.0+

Prior to this change OpenSSL_version was only detected in configure
builds. For other builds the old version parsing code was used which
would result in incorrect versioning for OpenSSL 3:

Before:

curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.0a zlib/1.2.11
WinIDN libssh2/1.9.0

After:

curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.1 zlib/1.2.11
WinIDN libssh2/1.9.0

Reported-by: lllaffer@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/8154
Closes https://github.com/curl/curl/pull/8155
lib/vtls/openssl.c
m4/curl-openssl.m4