From 909a68c1216b6ea5dbeceaedecec16a0599793d1 Mon Sep 17 00:00:00 2001 From: Fabian Frank Date: Sun, 9 Feb 2014 23:38:55 -0800 Subject: 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 --- include/curl/curl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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; -- cgit v1.2.3