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