pub unsafe extern "C" fn s2n_connection_get_peer_cert_chain(
    conn: *const s2n_connection,
    cert_chain: *mut s2n_cert_chain_and_key
) -> i32
Expand description

Returns the validated peer certificate chain as a s2n_cert_chain_and_key opaque object.

The s2n_cert_chain_and_key parameter must be allocated by the caller using the s2n_cert_chain_and_key_new API prior to this function call and must be empty. To free the memory associated with the s2n_cert_chain_and_key object use the s2n_cert_chain_and_key_free API.

@param conn A pointer to the s2n_connection object being read. @param cert_chain The returned validated peer certificate chain cert_chain retrieved from the s2n connection.