Fix multi-character character constant for ssl_forbid_method

This commit is contained in:
Tatsuya Kinoshita
2018-01-06 19:22:10 +09:00
parent 1b23ebf644
commit 762e28dc89
7 changed files with 13 additions and 13 deletions

6
url.c
View File

@@ -338,9 +338,9 @@ openSSLHandle(int sock, char *hostname, char **p_cert)
option |= SSL_OP_NO_TLSv1;
if (strchr(ssl_forbid_method, 'T'))
option |= SSL_OP_NO_TLSv1;
if (strchr(ssl_forbid_method, 't1.1'))
option |= SSL_OP_NO_TLSv1_1;
if (strchr(ssl_forbid_method, 'T1.1'))
if (strchr(ssl_forbid_method, '4'))
option |= SSL_OP_NO_TLSv1;
if (strchr(ssl_forbid_method, '5'))
option |= SSL_OP_NO_TLSv1_1;
}
#ifdef SSL_OP_NO_COMPRESSION