pub unsafe extern "C" fn s2n_connection_get_negotiated_psk_identity_length(
    conn: *mut s2n_connection,
    identity_length: *mut u16
) -> c_int
Expand description

Gets the negotiated PSK identity length from the s2n connection object. The negotiated PSK refers to the chosen PSK by the server to be used for the connection.

This API can be used to determine if the negotiated PSK exists. If negotiated PSK exists a call to this API returns a value greater than zero. If the negotiated PSK does not exist, the value 0 is returned.

@param conn A pointer to the s2n_connection object that successfully negotiated a PSK connection. @param identity_length The length of the negotiated PSK identity.