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.

Parameters
ctx[IN] TLS object
maxVersion[OUT] Latest protocol version supported
Return values
HITLS_SUCCESS,obtainedsuccessfully. For details about other error codes, see hitls_error.h.