@@ -7129,55 +7129,14 @@ impl<F: BufFactory> Connection<F> {
71297129 self . handshake . is_in_early_data ( )
71307130 }
71317131
7132- // #[rustfmt::skip]
7133- /// https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#ssl_early_data_reason_t
7132+ /// Returns the early data reason for the connection.
71347133 ///
7135- /// // The handshake has not progressed far enough for the 0-RTT status to
7136- /// // be known.
7137- /// ssl_early_data_unknown = 0,
7134+ /// This status can be useful for logging and debugging. See [BoringSSL]
7135+ /// documentation for a definition of the reasons.
71387136 ///
7139- /// // 0-RTT is disabled for this connection.
7140- /// ssl_early_data_disabled = 1,
7141- ///
7142- /// // 0-RTT was accepted.
7143- /// ssl_early_data_accepted = 2,
7144- ///
7145- /// // The negotiated protocol version does not support 0-RTT.
7146- /// ssl_early_data_protocol_version = 3,
7147- ///
7148- /// // The peer declined to offer or accept 0-RTT for an unknown reason.
7149- /// ssl_early_data_peer_declined = 4,
7150- ///
7151- /// // The client did not offer a session.
7152- /// ssl_early_data_no_session_offered = 5,
7153- ///
7154- /// // The server declined to resume the session.
7155- /// ssl_early_data_session_not_resumed = 6,
7156- ///
7157- /// // The session does not support 0-RTT.
7158- /// ssl_early_data_unsupported_for_session = 7,
7159- ///
7160- /// // The server sent a HelloRetryRequest.
7161- /// ssl_early_data_hello_retry_request = 8,
7162- ///
7163- /// // The negotiated ALPN protocol did not match the session.
7164- /// ssl_early_data_alpn_mismatch = 9,
7165- ///
7166- /// // The connection negotiated Channel ID, which is incompatible with
7167- /// // 0-RTT.
7168- /// ssl_early_data_channel_id = 10,
7169- ///
7170- /// // Value 11 is reserved. (It has historically
7171- /// |ssl_early_data_token_binding|.) // The client and server ticket age
7172- /// were too far apart. ssl_early_data_ticket_age_skew = 12,
7173- ///
7174- /// // QUIC parameters differ between this connection and the original.
7175- /// ssl_early_data_quic_parameter_mismatch = 13,
7176- ///
7177- /// // The application settings did not match the session.
7178- /// ssl_early_data_alps_mismatch = 14,
7137+ /// [BoringSSL]: https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#ssl_early_data_reason_t
71797138 #[ inline]
7180- pub fn get_early_data_reason ( & self ) -> u32 {
7139+ pub fn early_data_reason ( & self ) -> u32 {
71817140 self . handshake . early_reason ( )
71827141 }
71837142
0 commit comments