about summary refs log tree commit diff stats
path: root/WWW/Library
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2016-11-04 21:54:57 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2016-11-04 21:54:57 -0400
commitee3e49e1853d643a67e46ce7ee2685d9df730186 (patch)
tree2d76ea444e982b6feea5314f89ad47dde0bcef2c /WWW/Library
parentc72875ff13e8237450e6a9b7c7c67835d974c429 (diff)
downloadlynx-snapshots-ee3e49e1853d643a67e46ce7ee2685d9df730186.tar.gz
snapshot of project "lynx", label v2-8-9dev_9i
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTTP.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index a4cb9c0e..420aae17 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.156 2016/11/04 13:27:29 tom Exp $
+ * $LynxId: HTTP.c,v 1.157 2016/11/04 18:42:10 Taketo.Kabe Exp $
  *
  * HyperText Tranfer Protocol	- Client implementation		HTTP.c
  * ==========================
@@ -882,7 +882,11 @@ static int HTLoadHTTP(const char *arg,
 #elif SSLEAY_VERSION_NUMBER >= 0x0900
 #ifndef USE_NSS_COMPAT_INCL
 	if (!try_tls) {
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+	    SSL_set_min_proto_version(handle, TLS1_1_VERSION);
+#else
 	    SSL_set_options(handle, SSL_OP_NO_TLSv1);
+#endif
 	    CTRACE((tfp, "...adding SSL_OP_NO_TLSv1\n"));
 	}
 #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)