openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetNegotiatedVersion()

int32_t HITLS_GetNegotiatedVersion ( const HITLS_Ctx ctx,
uint16_t *  version 
)

Obtain the HiTLS negotiation version.

参数
ctx[IN] TLS object
version[OUT] Negotiated version
返回值
HITLS_SUCCESS,obtainedsuccessfully. For details about other error codes, see hitls_error.h.