diff options
author | Mark Wright <gienah@gentoo.org> | 2018-10-24 14:00:04 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-10-24 14:00:04 +0000 |
commit | d10007a2c61709a5b8f7ed6a5e9f4a24ac374c92 (patch) | |
tree | 5a5ca39ccbf04e12707afe8e76f50edbd145064b /istream.c | |
parent | Update ChangeLog (diff) | |
download | w3m-d10007a2c61709a5b8f7ed6a5e9f4a24ac374c92.tar.gz w3m-d10007a2c61709a5b8f7ed6a5e9f4a24ac374c92.zip |
Do not use deprecated features with openssl-1.1
Diffstat (limited to '')
-rw-r--r-- | istream.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -421,7 +421,11 @@ ssl_check_cert_ident(X509 * x, char *hostname) for (i = 0; i < n; i++) { gn = sk_GENERAL_NAME_value(alt, i); if (gn->type == GEN_DNS) { +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) char *sn = ASN1_STRING_data(gn->d.ia5); +#else + char *sn = ASN1_STRING_get0_data(gn->d.ia5); +#endif int sl = ASN1_STRING_length(gn->d.ia5); if (!seen_dnsname) |