Type Alias s2n_quic::provider::tls::default::ffi::s2n_alert_behavior::Type

source ·
pub type Type = u32;
Expand description

Sets whether or not a connection should terminate on receiving a WARNING alert from its peer.

alert_behavior can take the following values:

  • S2N_ALERT_FAIL_ON_WARNINGS default behavior: s2n-tls will terminate the connection if its peer sends a WARNING alert.
  • S2N_ALERT_IGNORE_WARNINGS - with the exception of close_notify s2n-tls will ignore all WARNING alerts and keep communicating with its peer. This setting is ignored in TLS1.3

@note TLS1.3 terminates a connection for all alerts except user_canceled. @warning S2N_ALERT_FAIL_ON_WARNINGS is the recommended behavior. Past TLS protocol vulnerabilities have involved downgrading alerts to warnings.