From 3fd49fe2d4843ceaa8c9b3bc4c77bafe1a0e5091 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 19 Sep 2018 07:04:15 +0000 Subject: [PATCH] Make libfetch buildable. --- lib/libfetch/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 6ea92f1d4591..74bc145f6873 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -674,7 +674,11 @@ fetch_ssl_verify_altname(STACK_OF(GENERAL_NAME) *altnames, #else name = sk_GENERAL_NAME_value(altnames, i); #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L ns = (const char *)ASN1_STRING_data(name->d.ia5); +#else + ns = (const char *)ASN1_STRING_get0_data(name->d.ia5); +#endif nslen = (size_t)ASN1_STRING_length(name->d.ia5); if (name->type == GEN_DNS && ip == NULL &&