openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetErrorCode()

int32_t HITLS_SetErrorCode ( HITLS_Ctx ctx,
int32_t  errorCode 
)

Record the error value of the HiTLS link.

Parameters
ctx[OUT] TLS connection handle
ret[IN] Error value
Return values
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.