diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2015-02-14 16:57:07 +0100 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2015-03-20 20:14:33 +0100 |
commit | 4dcd25e138e9c18a4c96cb78bca5749d8431699f (patch) | |
tree | d061485adaefcfea53e76e599b1e98da63ad776a /lib/url.c | |
parent | a332922a526f91876fc8ffa73a45322800bf0e73 (diff) | |
download | curl-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.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |