From a14d4a045165de9e356cd924782f9161e7b16d05 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Wed, 15 Mar 2023 08:33:12 +0800 Subject: [PATCH] dns_client: fix compile error with openssl 1.x --- src/dns_client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dns_client.c b/src/dns_client.c index 52c7e52..4ab0d80 100644 --- a/src/dns_client.c +++ b/src/dns_client.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -2775,7 +2776,7 @@ static int _dns_client_verify_common_name(struct dns_server_info *server_info, X continue; } switch (name->type) { - case GEN_DNS: + case GEN_DNS: { ASN1_IA5STRING *dns = name->d.dNSName; if (dns == NULL) { continue; @@ -2786,7 +2787,7 @@ static int _dns_client_verify_common_name(struct dns_server_info *server_info, X tlog(TLOG_INFO, "peer SAN match: %s", dns->data); return 0; } - break; + } break; case GEN_IPADD: break; default: