Set the key exchange mode, which is used by TLS1.3.
- 参数
-
config | [OUT] TLS link configuration |
mode | [IN] PSK key exchange mode. Currently, only TLS13_KE_MODE_PSK_ONLY and TLS13_KE_MODE_PSK_WITH_DHE are supported. The corresponding bit is set to 1. |
- 返回值
-
HITLS_SUCCESS,if | successful. For details about other error codes, see hitls_error.h. |