openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_GetConfigUserData()

void * HITLS_CFG_GetConfigUserData ( const HITLS_Config config)

Obtain the user data from the HiTLS Config object. Generally, this function is called during the callback registered with the HiTLS.

Attention
must be called before HITLS_Connect and HITLS_Accept. The life cycle of the user identifier must be longer than that of the TLS object.
Parameters
config[OUT] TLS connection handle.
userData[IN] User identifier.
Return values
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,TheTLS object pointer of the input parameter is null.