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:
parent
b43851c7a0
commit
5e968be14e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user