Set the maximum protocol version that is supported 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 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.
- 返回值
-
HITLS_SUCCESS,if | successful. |
For | other error codes, see hitls_error.h. |