Function bearssl::br_ssl_engine_renegotiate [] [src]

pub unsafe extern "C" fn br_ssl_engine_renegotiate(
    cc: *mut br_ssl_engine_context
) -> c_int

\brief Initiate a renegotiation.

If the engine is failed or closed, or if the peer is known not to support secure renegotiation (RFC 5746), or if renegotiations have been disabled with the BR_OPT_NO_RENEGOTIATION flag, or if there is buffered incoming application data, then this function returns 0 and nothing else happens.

Otherwise, this function returns 1, and a renegotiation attempt is triggered (if a handshake is already ongoing at that point, then no new handshake is triggered).

\param cc SSL engine context. \return 1 on success, 0 on error.