openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetRenegotiationState()

int32_t HITLS_GetRenegotiationState ( const HITLS_Ctx ctx,
uint8_t *  isRenegotiationState 
)

Obtain the current is whether in the renegotiation state.

Attention
For the server, the server does not enter the renegotiation state by sending only the hello request message, The server enters the renegotiation state only after receiving the client hello message.
Parameters
ctx[IN] TLS Connection Handle.
isRenegotiationState[OUT] Indicates whether the renegotiation is in the renegotiation state. true: in the renegotiation state; false: not in the renegotiation state.
Return values
HITLS_SUCCESS,ifsuccessful.
Fordetails about other error codes, see hitls_error.h.