Support TLS 1.3

This commit is contained in:
Nick Peng
2019-06-21 20:37:18 +08:00
parent 99972c36ad
commit dda785ec5f

View File

@@ -752,7 +752,7 @@ static int _dns_client_server_add(char *server_ip, char *server_host, int port,
/* if server type is TLS, create ssl context */
if (server_type == DNS_SERVER_TLS || server_type == DNS_SERVER_HTTPS) {
server_info->ssl_ctx = SSL_CTX_new(SSLv23_client_method());
server_info->ssl_ctx = SSL_CTX_new(TLS_client_method());
if (server_info->ssl_ctx == NULL) {
tlog(TLOG_ERROR, "init ssl failed.");
goto errout;