openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_Close()

int32_t HITLS_Close ( HITLS_Ctx ctx)

Close the TLS connection.

If the peer end is not closed, the system sends a closed notify message to the peer end. HITLS_Close must not be called if a fatal error has occurred on the link.

参数
ctx[IN] TLS connection handle.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.