From d1624b94f0a21cefe803b2ccafe40bd71939bf42 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 4 Nov 2021 17:20:23 +0100 Subject: [PATCH] ngtcp2: support latest QUIC TLS RFC9001 QUIC Transport Parameters Extension has been changed between draft-29 and latest RFC9001. Most notably, its identifier has been updated from 0xffa5 to 0x0039. The version is selected through the QUIC TLS library via the legacy codepoint. Disable the usage of legacy codepoint in curl to switch to latest RFC9001. This is required to be able to keep up with latest QUIC implementations. Acked-by: Tatsuhiro Tsujikawa Closes #7960 --- lib/vquic/ngtcp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 2b0f7dbed8..a13b55ad7d 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -303,7 +303,7 @@ static int quic_init_ssl(struct quicsocket *qs) SSL_set_app_data(qs->ssl, qs); SSL_set_connect_state(qs->ssl); - SSL_set_quic_use_legacy_codepoint(qs->ssl, 1); + SSL_set_quic_use_legacy_codepoint(qs->ssl, 0); alpn = (const uint8_t *)H3_ALPN_H3_29; alpnlen = sizeof(H3_ALPN_H3_29) - 1; -- 2.47.3