pub unsafe extern "C" fn s2n_connection_append_psk(
    conn: *mut s2n_connection,
    psk: *mut s2n_psk
) -> c_int
Expand description

Appends a PSK object to the list of PSKs supported by the s2n connection. If a PSK with a duplicate identity is found, an error is returned and the PSK is not added to the list. Note that a copy of psk is stored on the connection. The user is still responsible for freeing the memory associated with psk.

@param conn A pointer to the s2n_connection object that contains the list of PSKs supported. @param psk A pointer to the s2n_psk object to be appended to the list of PSKs on the s2n connection.