pub unsafe extern "C" fn s2n_connection_request_key_update(
conn: *mut s2n_connection,
peer_request: u32
) -> i32
Expand description
Signals the connection to do a key_update at the next possible opportunity. Note that the resulting key update message
will not be sent until s2n_send
is called.
@param conn The connection object to trigger the key update on.
@param peer_request Indicates if a key update should also be requested
of the peer. When set to S2N_KEY_UPDATE_NOT_REQUESTED
, then only the sending
key of conn
will be updated. If set to S2N_KEY_UPDATE_REQUESTED
, then
the sending key of conn will be updated AND the peer will be requested to
update their sending key. Note that s2n-tls currently only supports
peer_request
being set to S2N_KEY_UPDATE_NOT_REQUESTED
and will return
S2N_FAILURE if any other value is used.
@returns S2N_SUCCESS on success. S2N_FAILURE on failure