From 2352039c35ba8754f60ca45c24d46e253766b4e0 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 14 Nov 2012 01:19:06 -0500 Subject: snapshot of project "lynx", label v2-8-8dev_14e --- WWW/Library/Implementation/HTTP.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation/HTTP.c') 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; -- cgit 1.4.1-2-gfad0