summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2021-03-08 21:15:01 +0100
committerStefan Eissing <icing@apache.org>2021-03-08 21:15:01 +0100
commitff5583ba76d90938e2c7fbe33b4667a5355d0ece (patch)
tree16ad0b25b11f76e769f15ce2e4c56abed0b77506 /modules
parentlog tags, my nemesis (diff)
downloadapache2-ff5583ba76d90938e2c7fbe33b4667a5355d0ece.tar.xz
apache2-ff5583ba76d90938e2c7fbe33b4667a5355d0ece.zip
Use ASN1_STRING_data() if openssl verison < 1.1.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887342 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/md/md_crypt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/md/md_crypt.c b/modules/md/md_crypt.c
index 237a85df3d..cd9fa13daa 100644
--- a/modules/md/md_crypt.c
+++ b/modules/md/md_crypt.c
@@ -1214,7 +1214,11 @@ apr_status_t md_cert_get_alt_names(apr_array_header_t **pnames, const md_cert_t
break;
case GEN_IPADD:
len = ASN1_STRING_length(cval->d.iPAddress);
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ ip = ASN1_STRING_get_data(cval->d.iPAddress);
+#else
ip = ASN1_STRING_get0_data(cval->d.iPAddress);
+#endif
if (len == 4) /* IPv4 address */
APR_ARRAY_PUSH(names, const char *) = apr_psprintf(p, "%u.%u.%u.%u",
ip[0], ip[1], ip[2], ip[3]);