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
This commit is contained in:
Amaury Denoyelle 2021-11-04 17:20:23 +01:00 committed by Daniel Stenberg
parent eccaa83cee
commit d1624b94f0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -303,7 +303,7 @@ static int quic_init_ssl(struct quicsocket *qs)
SSL_set_app_data(qs->ssl, qs); SSL_set_app_data(qs->ssl, qs);
SSL_set_connect_state(qs->ssl); 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; alpn = (const uint8_t *)H3_ALPN_H3_29;
alpnlen = sizeof(H3_ALPN_H3_29) - 1; alpnlen = sizeof(H3_ALPN_H3_29) - 1;