Add support for IETF QUIC RFCv1
This CL adds support for the final RFC version of QUIC, which will have ALPN h3. Since the RFC has not shipped yet, the flag is marked enabling_blocked_by until we get the go-ahead to ship from the IETF.
Protected by quic_reloadable_flag_quic_enable_version_rfcv1.
PiperOrigin-RevId: 355042709
Change-Id: Idf80d71435c38855a89958037123e4944abc35bb
diff --git a/quic/core/tls_client_handshaker.cc b/quic/core/tls_client_handshaker.cc
index b878ab8..448136f 100644
--- a/quic/core/tls_client_handshaker.cc
+++ b/quic/core/tls_client_handshaker.cc
@@ -63,6 +63,13 @@
return false;
}
+ // Make sure we use the right TLS extension codepoint.
+ int use_legacy_extension = 0;
+ if (session()->version().UsesLegacyTlsExtension()) {
+ use_legacy_extension = 1;
+ }
+ SSL_set_quic_use_legacy_codepoint(ssl(), use_legacy_extension);
+
// Set the SNI to send, if any.
SSL_set_connect_state(ssl());
if (QUIC_DLOG_INFO_IS_ON() &&