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,if | successful. |
HITLS_NULL_INPUT,the | TLS object pointer of the input parameter is null. |