gfe-relnote: In QUIC, factor out ProcessVersionLabel and ValidateIetfConnectionIdLength functions. No functional change expected, not protected.
PiperOrigin-RevId: 247438554
Change-Id: I952b56fc4ca66d2a2d57a0fcc6b009950cc39826
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index eb811bc..e2d7b4d 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -659,6 +659,20 @@
bool ProcessUnauthenticatedHeader(QuicDataReader* encrypted_reader,
QuicPacketHeader* header);
+ // Processes the version label in the packet header.
+ static bool ProcessVersionLabel(QuicDataReader* reader,
+ QuicVersionLabel* version_label);
+
+ // Validates and updates |destination_connection_id_length| and
+ // |source_connection_id_length|.
+ static bool ValidateIetfConnectionIdLength(
+ uint8_t connection_id_lengths_byte,
+ ParsedQuicVersion version,
+ bool should_update_expected_connection_id_length,
+ uint8_t* expected_connection_id_length,
+ uint8_t* destination_connection_id_length,
+ uint8_t* source_connection_id_length);
+
bool ProcessIetfHeaderTypeByte(QuicDataReader* reader,
QuicPacketHeader* header);
bool ProcessIetfPacketHeader(QuicDataReader* reader,