openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetVersion()

int32_t HITLS_CFG_SetVersion ( HITLS_Config config,
uint16_t  minVersion,
uint16_t  maxVersion 
)

Set the supported version number range.

参数
config[OUT] Config handle
minVersion[IN] Minimum version number
maxVersion[IN] Maximum version number
注意
The maximum version number and minimum version number must be both TLS and DTLS. Currently, only DTLS 1.2. HITLS_CFG_NewDTLSConfig, HITLS_CFG_NewTLSConfig can be used with full configuration interfaces. If TLS full configuration is configured, only the TLS version can be set. If DTLS full configuration is configured, only the DTLS version can be set.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis null.