0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00

Report run-time OpenSSL version instead of compile time version

Returning OPENSSL_VERSION_TEXT will return the value of the library at
compile time. We rather want to know the version of the library that is
actually running, so use OpenSSL_version instead.

Jira: OVPN3-1227
Signed-off-by: Arne Schwabe <arne@openvpn.net>
This commit is contained in:
Arne Schwabe 2024-07-13 12:48:50 +02:00 committed by Jenkins-dev
parent b43851c7a0
commit 5e968be14e

View File

@ -2309,7 +2309,7 @@ class OpenSSLContext : public SSLFactoryAPI
inline const std::string get_ssl_library_version()
{
return OPENSSL_VERSION_TEXT;
return OpenSSL_version(OPENSSL_VERSION);
}
} // namespace openvpn
#endif