summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-13 16:07:53 +0200
committerSimon Rettberg2019-06-13 16:07:53 +0200
commitae1468064d26db94723989f4f9a35784a6433a7e (patch)
tree9f808b8d73e3a86a33d22c4a860533f26059b496
parentFix gen-version for dash (diff)
downloadldadp-ae1468064d26db94723989f4f9a35784a6433a7e.tar.gz
ldadp-ae1468064d26db94723989f4f9a35784a6433a7e.tar.xz
ldadp-ae1468064d26db94723989f4f9a35784a6433a7e.zip
Fix deprecated OpenSSL call
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
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;