aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--url.c6
1 files changed, 3 insertions, 3 deletions
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