Function s2n_quic::provider::tls::default::ffi::s2n_connection_is_valid_for_cipher_preferences
source · pub unsafe extern "C" fn s2n_connection_is_valid_for_cipher_preferences(
conn: *mut s2n_connection,
version: *const i8
) -> i32
Expand description
Function to check if the cipher used by current connection is supported by the current cipher preferences. @param conn A pointer to the s2n connection @param version A string representing the security policy to check against. @returns 1 if the connection satisfies the cipher suite. 0 if the connection does not satisfy the cipher suite. -1 if there is an error.