openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetMinProtoVersion()

int32_t HITLS_SetMinProtoVersion ( HITLS_Ctx ctx,
uint16_t  version 
)

Set the minimum protocol version based on the specified version.

参数
ctx[OUT] TLS object
versiion[IN] The given version
注意
The maximum version number and minimum version number must be both TLS and DTLS. Currently, only DTLS 1.2 is supported. This interface is used together with the full configuration interfaces, such as HITLS_CFG_NewDTLSConfig and HITLS_CFG_NewTLSConfig. If the TLS full configuration is configured, only the TLS version can be set. If full DTLS configuration is configured, only the DTLS version can be set.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.