about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTP.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2012-11-14 01:19:06 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2012-11-14 01:19:06 -0500
commit2352039c35ba8754f60ca45c24d46e253766b4e0 (patch)
tree31d9037b3b90ef000fe2a42bc56fcf679cca9b79 /WWW/Library/Implementation/HTTP.c
parent9eebe49d8e59d0fed4ea8b2b3ef40d6221e9fea3 (diff)
downloadlynx-snapshots-2352039c35ba8754f60ca45c24d46e253766b4e0.tar.gz
snapshot of project "lynx", label v2-8-8dev_14e
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r--WWW/Library/Implementation/HTTP.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index b265e11e..0a8f7411 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.125 2012/11/08 09:37:42 Jamie.Strandboge Exp $
+ * $LynxId: HTTP.c,v 1.126 2012/11/13 22:49:46 tom Exp $
  *
  * HyperText Tranfer Protocol	- Client implementation		HTTP.c
  * ==========================
@@ -710,7 +710,12 @@ static int HTLoadHTTP(const char *arg,
 	/* get host we're connecting to */
 	ssl_host = HTParse(url, "", PARSE_HOST);
 	ssl_host = StripIpv6Brackets(ssl_host);
-#if SSLEAY_VERSION_NUMBER >= 0x0900
+#if defined(USE_GNUTLS_FUNCS)
+	ret = gnutls_server_name_set(handle->gnutls_state,
+				     GNUTLS_NAME_DNS,
+				     ssl_host, strlen(ssl_host));
+	CTRACE((tfp, "...called gnutls_server_name_set(%s) ->%d\n", ssl_host, ret));
+#elif SSLEAY_VERSION_NUMBER >= 0x0900
 #ifndef USE_NSS_COMPAT_INCL
 	if (!try_tls) {
 	    handle->options |= SSL_OP_NO_TLSv1;