1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-19 18:20:40 +03:00

use SSL_SECOP_VERSION macro instead of OPENSSL_VERSION

OPENSSL_VERSION is fragile in LibreSSL, BoringSSL.
security level manipulation is openssl specific defined in
b362ccab5c
This commit is contained in:
Ilya Shipitsin 2021-02-20 17:48:26 +05:00
parent 44447e9762
commit ebd1d281dd

View File

@ -5750,7 +5750,7 @@ SSL_PIPE *NewSslPipeEx(bool server_mode, X *x, K *k, DH_CTX *dh, bool verify_pee
#if 0 #if 0
// Cannot get config // Cannot get config
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) #ifdef SSL_SECOP_VERSION
if (sock->SslAcceptSettings.Override_Security_Level) if (sock->SslAcceptSettings.Override_Security_Level)
{ {
SSL_CTX_set_security_level(ssl_ctx, sock->SslAcceptSettings.Override_Security_Level_Value); SSL_CTX_set_security_level(ssl_ctx, sock->SslAcceptSettings.Override_Security_Level_Value);