aboutsummaryrefslogtreecommitdiffstats
path: root/istream.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2018-10-26 12:06:37 +0000
committerGitHub <noreply@github.com>2018-10-26 12:06:37 +0000
commitbfe9ba9275f4cb6b2b23a230b59863658e6851fa (patch)
tree5a5ca39ccbf04e12707afe8e76f50edbd145064b /istream.c
parentUpdate ChangeLog (diff)
parentDo not use deprecated features with openssl-1.1 (diff)
downloadw3m-bfe9ba9275f4cb6b2b23a230b59863658e6851fa.tar.gz
w3m-bfe9ba9275f4cb6b2b23a230b59863658e6851fa.zip
Merge pull request #103 from Polynomial-C/openssl-1.1_disable_deprecated
Do not use deprecated features with openssl-1.1
Diffstat (limited to 'istream.c')
-rw-r--r--istream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/istream.c b/istream.c
index 1387307..4989a4f 100644
--- a/istream.c
+++ b/istream.c
@@ -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)