diff options
author | Simon Rettberg | 2019-06-13 16:07:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-13 16:07:53 +0200 |
commit | ae1468064d26db94723989f4f9a35784a6433a7e (patch) | |
tree | 9f808b8d73e3a86a33d22c4a860533f26059b496 | |
parent | Fix gen-version for dash (diff) | |
download | ldadp-ae1468064d26db94723989f4f9a35784a6433a7e.tar.gz ldadp-ae1468064d26db94723989f4f9a35784a6433a7e.tar.xz ldadp-ae1468064d26db94723989f4f9a35784a6433a7e.zip |
Fix deprecated OpenSSL call
-rw-r--r-- | openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |