Skip to content

Commit

Permalink
dns_client: fix compile error with openssl 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Mar 15, 2023
1 parent cf52eea commit a14d4a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dns_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -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;
Expand All @@ -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:
Expand Down

0 comments on commit a14d4a0

Please sign in to comment.