From 5bcddb9302f96d803bf6a8c47a9652fbfa12dc31 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 21 Dec 2018 12:21:03 +0200 Subject: [PATCH] DPP: Fix build with LibreSSL 2.8.3 Looks like LibreSSL 2.8 pulled in the OpenSSL API change to mark the first argument to X509_ALGOR_get0() const. Signed-off-by: Jouni Malinen --- src/common/dpp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/dpp.c b/src/common/dpp.c index e715e0454..bcb694b5a 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -813,7 +813,9 @@ 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 || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ + (defined(LIBRESSL_VERSION_NUMBER) && \ + LIBRESSL_VERSION_NUMBER < 0x20800000L) ASN1_OBJECT *pa_oid; #else const ASN1_OBJECT *pa_oid;