openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetMaxProtoVersion()

int32_t HITLS_GetMaxProtoVersion ( const HITLS_Ctx ctx,
uint16_t *  maxVersion 
)

Obtain the latest protocol version.

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