aboutsummaryrefslogtreecommitdiff
path: root/lib/gtls.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-20 08:28:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-20 08:28:02 +0000
commit55700cb01f4a01b8187f387e1655371e6fe0703a (patch)
treeb7683b39a639a13b82517bc774b9b7c931f542f4 /lib/gtls.c
parentf9a60620818b6a19ebe3e6f15e1b57d7012e6fb0 (diff)
- We no longer support setting the CURLOPT_URL option from inside a callback
such as the CURLOPT_SSL_CTX_FUNCTION one treat that as if it was a Location: following. The patch that introduced this feature was done for 7.11.0, but this code and functionality has been broken since about 7.15.4 (March 2006) with the introduction of non-blocking OpenSSL "connects". It was a hack to begin with and since it doesn't work and hasn't worked correctly for a long time and nobody has even noticed, I consider it a very suitable subject for plain removal. And so it was done.
Diffstat (limited to 'lib/gtls.c')
-rw-r--r--lib/gtls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index e980a5bdc..2364c2778 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -230,7 +230,9 @@ Curl_gtls_connect(struct connectdata *conn,
void *ssl_sessionid;
size_t ssl_idsize;
- if(!gtls_inited) _Curl_gtls_init();
+ if(!gtls_inited)
+ _Curl_gtls_init();
+
/* GnuTLS only supports TLSv1 (and SSLv3?) */
if(data->set.ssl.version == CURL_SSLVERSION_SSLv2) {
failf(data, "GnuTLS does not support SSLv2");