From 762e28dc89fc80eb806d5da8a11ad05a036347fb Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 6 Jan 2018 19:22:10 +0900 Subject: Fix multi-character character constant for ssl_forbid_method --- url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'url.c') diff --git a/url.c b/url.c index aae5a97..d759383 100644 --- a/url.c +++ b/url.c @@ -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 -- cgit v1.2.3