From 809c675029fed0cfc9ce692e98439c14fb68c42a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 17 Jul 2017 12:26:44 +0300 Subject: [PATCH] DPP: Fix build with OpenSSL 1.1.0 X509_ALGOR_get0() was modified to use const ** pointer as the first argument in OpenSSL 1.1.0, so need to use different type here to avoid compilation issues. Signed-off-by: Jouni Malinen --- src/common/dpp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/dpp.c b/src/common/dpp.c index 026c81e5e..e98a13390 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -730,7 +730,11 @@ static int dpp_parse_uri_pk(struct dpp_bootstrap_info *bi, const char *info) const unsigned char *pk; int ppklen; X509_ALGOR *pa; +#if OPENSSL_VERSION_NUMBER < 0x10100000L ASN1_OBJECT *pa_oid; +#else + const ASN1_OBJECT *pa_oid; +#endif const void *pval; int ptype; const ASN1_OBJECT *poid;