pub unsafe extern "C" fn s2n_connection_get_alert(
conn: *mut s2n_connection,
) -> i32
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