openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetClientVersion()

int32_t HITLS_GetClientVersion ( const HITLS_Ctx ctx,
uint16_t *  clientVersion 
)

Obtain the version number set by the client in ClientHello.

参数
ctx[IN] TLS connection handle
clientVersion[OUT] Obtained version number
返回值
HITLS_SUCCESS,obtainingthe status succeeded. For details about other error codes, see hitls_error.h.