From ae1468064d26db94723989f4f9a35784a6433a7e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Jun 2019 16:07:53 +0200 Subject: Fix deprecated OpenSSL call --- openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl.c b/openssl.c index 84ab4de..0b64382 100644 --- a/openssl.c +++ b/openssl.c @@ -199,7 +199,7 @@ static BOOL spc_verify_cert_hostname(X509 *cert, const char *hostname) continue; // Current name is a DNS name, let's check it - char *dns_name = (char*)ASN1_STRING_data(current_name->d.dNSName); + const char *dns_name = (const char*)ASN1_STRING_get0_data(current_name->d.dNSName); // Make sure there isn't an embedded null character in the DNS name if ((size_t) ASN1_STRING_length(current_name->d.dNSName) != strlen(dns_name)) break; -- cgit v1.2.3-55-g7522