summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFabian Frank <fabian@pagefault.de>2014-02-09 23:38:55 -0800
committerDaniel Stenberg <daniel@haxx.se>2014-02-10 13:06:17 +0100
commit909a68c1216b6ea5dbeceaedecec16a0599793d1 (patch)
tree830bfa629484d94a9f17e9bb285e8a0726e75eee /include
parent70bd9784de06c0154663126e406b946befef2b5a (diff)
downloadcurl-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 'include')
-rw-r--r--include/curl/curl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index aafaeed2d..b2c9ee091 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1571,6 +1571,12 @@ typedef enum {
/* Set authentication options directly */
CINIT(LOGIN_OPTIONS, OBJECTPOINT, 224),
+ /* Enable/disable TLS NPN extension (http2 over ssl might fail without) */
+ CINIT(SSL_ENABLE_NPN, LONG, 225),
+
+ /* Enable/disable TLS ALPN extension (http2 over ssl might fail without) */
+ CINIT(SSL_ENABLE_ALPN, LONG, 226),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;