Function s2n_tls_sys::s2n_connection_get_alert

source ·
pub unsafe extern "C" fn s2n_connection_get_alert(
    conn: *mut s2n_connection
) -> c_int
Expand description

Function to get the alert that caused a connection to close. s2n-tls considers all TLS alerts fatal and shuts down a connection whenever one is received.

@param conn A pointer to the s2n connection @returns The TLS alert code that caused a connection to be shut down