dns_client: fix compile error with openssl 1.x
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/x509v3.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -2775,7 +2776,7 @@ static int _dns_client_verify_common_name(struct dns_server_info *server_info, X
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch (name->type) {
|
switch (name->type) {
|
||||||
case GEN_DNS:
|
case GEN_DNS: {
|
||||||
ASN1_IA5STRING *dns = name->d.dNSName;
|
ASN1_IA5STRING *dns = name->d.dNSName;
|
||||||
if (dns == NULL) {
|
if (dns == NULL) {
|
||||||
continue;
|
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);
|
tlog(TLOG_INFO, "peer SAN match: %s", dns->data);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
} break;
|
||||||
case GEN_IPADD:
|
case GEN_IPADD:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user