Update to IETF draft 24 gfe-relnote: update draft number, protected by disabled v99 flag PiperOrigin-RevId: 278697164 Change-Id: I0c3e446bc57ef1a514850552fa6c5cfe201f28f7
diff --git a/quic/core/crypto/crypto_utils.cc b/quic/core/crypto/crypto_utils.cc index 232c258..1c249b9 100644 --- a/quic/core/crypto/crypto_utils.cc +++ b/quic/core/crypto/crypto_utils.cc
@@ -109,8 +109,8 @@ namespace { -static_assert(kQuicIetfDraftVersion == 23, "Salts do not match draft version"); -// Salt from https://tools.ietf.org/html/draft-ietf-quic-tls-23#section-5.2 +static_assert(kQuicIetfDraftVersion == 24, "Salts do not match draft version"); +// Salt from https://tools.ietf.org/html/draft-ietf-quic-tls-24#section-5.2 const uint8_t kDraft23InitialSalt[] = {0xc3, 0xee, 0xf7, 0x12, 0xc7, 0x2e, 0xbb, 0x5a, 0x11, 0xa7, 0xd2, 0x43, 0x2b, 0xb4, 0x63, 0x65, 0xbe, 0xf9, 0xf5, 0x02};
diff --git a/quic/core/quic_versions.h b/quic/core/quic_versions.h index 7fd1d01..0a4022e 100644 --- a/quic/core/quic_versions.h +++ b/quic/core/quic_versions.h
@@ -119,7 +119,7 @@ }; // IETF draft version most closely approximated by TLS + v99. -static const int kQuicIetfDraftVersion = 23; +static const int kQuicIetfDraftVersion = 24; // The crypto handshake protocols that can be used with QUIC. enum HandshakeProtocol {
diff --git a/quic/core/quic_versions_test.cc b/quic/core/quic_versions_test.cc index 92e3309..02aa15f 100644 --- a/quic/core/quic_versions_test.cc +++ b/quic/core/quic_versions_test.cc
@@ -464,7 +464,9 @@ EXPECT_EQ("h3-T049", AlpnForVersion(parsed_version_t049)); EXPECT_EQ("h3-Q050", AlpnForVersion(parsed_version_q050)); EXPECT_EQ("h3-T050", AlpnForVersion(parsed_version_t050)); - EXPECT_EQ("h3-23", AlpnForVersion(parsed_version_t099)); + EXPECT_EQ("h3-24", AlpnForVersion(parsed_version_t099)); + static_assert(kQuicIetfDraftVersion == 24, + "ALPN does not match draft version"); } TEST_F(QuicVersionsTest, QuicEnableVersion) {