openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetUserData()

void * HITLS_GetUserData ( const HITLS_Ctx ctx)

Obtain user data from the HiTLS context. This interface is called in the callback registered with the HiTLS.

Attention
must be called before HITLS_Connect and HITLS_Accept. The life cycle of the user data pointer must be longer than the life cycle of the TLS object.
Parameters
ctx[OUT] TLS connection handle.
Return values
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,theTLS object pointer of the input parameter is null.