summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2015-02-14 16:57:07 +0100
committerKamil Dudka <kdudka@redhat.com>2015-03-20 20:14:33 +0100
commit4dcd25e138e9c18a4c96cb78bca5749d8431699f (patch)
treed061485adaefcfea53e76e599b1e98da63ad776a /lib/url.c
parenta332922a526f91876fc8ffa73a45322800bf0e73 (diff)
downloadcurl-4dcd25e138e9c18a4c96cb78bca5749d8431699f.tar.gz
url: add CURLOPT_SSL_FALSESTART option
This option can be used to enable/disable TLS False Start defined in the RFC draft-bmoeller-tls-falsestart.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 3be6a4a3b..82faaf18a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2027,6 +2027,17 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
result = CURLE_NOT_BUILT_IN;
#endif
break;
+ case CURLOPT_SSL_FALSESTART:
+ /*
+ * Enable TLS false start.
+ */
+ if(!Curl_ssl_false_start()) {
+ result = CURLE_NOT_BUILT_IN;
+ break;
+ }
+
+ data->set.ssl.falsestart = (0 != va_arg(param, long))?TRUE:FALSE;
+ break;
case CURLOPT_CERTINFO:
#ifdef have_curlssl_certinfo
data->set.ssl.certinfo = (0 != va_arg(param, long))?TRUE:FALSE;