Set the supported version number.
- 参数
-
ctx | [OUT] TLS connection handle |
version | [IN] Supported version number. |
- 注意
- The maximum version number and minimum version number must be both TLS and DTLS. Currently, only DTLS 1.2 is supported. This function 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. The versions must be consecutive. By default, the minimum and maximum versions are supported.
- 返回值
-
HITLS_SUCCESS,if | successful. |
HITLS_NULL_INPUT,config | is null. |