pub unsafe extern "C" fn s2n_connection_get_cipher_iana_value(
    conn: *mut s2n_connection,
    first: *mut u8,
    second: *mut u8
) -> c_int
Expand description

Returns the IANA value for the connection’s negotiated cipher suite.

The value is returned in the form of first,second, in order to closely match the values defined in the IANA Registry. For example if the connection’s negotiated cipher suite is TLS_AES_128_GCM_SHA256, which is registered as 0x13,0x01, then first = 0x13 and second = 0x01.

This method will only succeed after the cipher suite has been negotiated with the peer.

@param conn A pointer to the connection being read @param first A pointer to a single byte, which will be updated with the first byte in the registered IANA value. @param second A pointer to a single byte, which will be updated with the second byte in the registered IANA value. @return A POSIX error signal. If an error was returned, the values contained in first and second should be considered invalid.