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.

注意
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.
参数
ctx[OUT] TLS connection handle.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,theTLS object pointer of the input parameter is null.