mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 15:54:57 +03:00
Merge pull request #1115 from takotakot/import_v4_change
Add Tls_Disable1_3 (Import v4 change)
This commit is contained in:
@ -12147,6 +12147,13 @@ bool StartSSLEx(SOCK *sock, X *x, K *priv, UINT ssl_timeout, char *sni_hostname)
|
||||
}
|
||||
#endif // SSL_OP_NO_TLSv1_2
|
||||
|
||||
#ifdef SSL_OP_NO_TLSv1_3
|
||||
if (sock->SslAcceptSettings.Tls_Disable1_3)
|
||||
{
|
||||
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_TLSv1_3);
|
||||
}
|
||||
#endif // SSL_OP_NO_TLSv1_3
|
||||
|
||||
Unlock(openssl_lock);
|
||||
AddChainSslCertOnDirectory(ssl_ctx);
|
||||
Lock(openssl_lock);
|
||||
|
@ -147,6 +147,7 @@ struct SSL_ACCEPT_SETTINGS
|
||||
bool Tls_Disable1_0;
|
||||
bool Tls_Disable1_1;
|
||||
bool Tls_Disable1_2;
|
||||
bool Tls_Disable1_3;
|
||||
};
|
||||
|
||||
// Socket
|
||||
|
Reference in New Issue
Block a user