Skip to main content

is_ech_rejected

Function is_ech_rejected 

pub fn is_ech_rejected(library_code: i32, reason_code: i32) -> bool
Available on crate feature boring only.
Expand description

Whether a native library/reason pair identifies an ECH rejection.

Pass crate::error::Error::library_code and crate::error::Error::reason_code, or copies preserved by a transport. Neither a packed native error nor super::ErrorCode is a reason code. Both the library and reason must match; other TLS failures are not rejections.

This classifies an error, not the peer’s authentication. Only consume retry configurations after authenticating the rejecting server’s public name.