Extend ssl_forbid_method for TLSv1.2 and TLSv1.3
This commit is contained in:
10
url.c
10
url.c
@@ -344,8 +344,18 @@ openSSLHandle(int sock, char *hostname, char **p_cert)
|
||||
option |= SSL_OP_NO_TLSv1;
|
||||
if (strchr(ssl_forbid_method, '4'))
|
||||
option |= SSL_OP_NO_TLSv1;
|
||||
#ifdef SSL_OP_NO_TLSv1_1
|
||||
if (strchr(ssl_forbid_method, '5'))
|
||||
option |= SSL_OP_NO_TLSv1_1;
|
||||
#endif
|
||||
#ifdef SSL_OP_NO_TLSv1_2
|
||||
if (strchr(ssl_forbid_method, '6'))
|
||||
option |= SSL_OP_NO_TLSv1_2;
|
||||
#endif
|
||||
#ifdef SSL_OP_NO_TLSv1_3
|
||||
if (strchr(ssl_forbid_method, '7'))
|
||||
option |= SSL_OP_NO_TLSv1_3;
|
||||
#endif
|
||||
}
|
||||
#ifdef SSL_OP_NO_COMPRESSION
|
||||
option |= SSL_OP_NO_COMPRESSION;
|
||||
|
Reference in New Issue
Block a user