diff options
author | Fabian Frank <fabian@pagefault.de> | 2014-02-09 23:38:55 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-10 13:06:17 +0100 |
commit | 909a68c1216b6ea5dbeceaedecec16a0599793d1 (patch) | |
tree | 830bfa629484d94a9f17e9bb285e8a0726e75eee /src/tool_setopt.c | |
parent | 70bd9784de06c0154663126e406b946befef2b5a (diff) | |
download | curl-909a68c1216b6ea5dbeceaedecec16a0599793d1.tar.gz |
NPN/ALPN: allow disabling via command line
when using --http2 one can now selectively disable NPN or ALPN with
--no-alpn and --no-npn. for now honored with NSS only.
TODO: honor this option with GnuTLS and OpenSSL
Diffstat (limited to 'src/tool_setopt.c')
-rw-r--r-- | src/tool_setopt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c index f29bcd619..2d60b255d 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -145,6 +145,8 @@ const NameValue setopt_nv_CURLPROTO[] = { static const NameValue setopt_nv_CURLNONZERODEFAULTS[] = { NV1(CURLOPT_SSL_VERIFYPEER, 1), NV1(CURLOPT_SSL_VERIFYHOST, 1), + NV1(CURLOPT_SSL_ENABLE_NPN, 1), + NV1(CURLOPT_SSL_ENABLE_ALPN, 1), NVEND }; |