Function s2n_tls_sys::s2n_negotiate
source · pub unsafe extern "C" fn s2n_negotiate(
conn: *mut s2n_connection,
blocked: *mut Type
) -> c_int
Expand description
Performs the initial “handshake” phase of a TLS connection and must be called before any s2n_recv() or s2n_send() calls.
@param conn A pointer to the s2n_connection object @param blocked A pointer which will be set to the blocked status. @returns S2N_SUCCESS if the handshake completed. S2N_FAILURE if the handshake encountered an error or is blocked.