aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-21 10:21:03 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-21 10:21:03 (GMT)
commit5bcddb9302f96d803bf6a8c47a9652fbfa12dc31 (patch)
tree94d100d73987642ebc467b8d38033876cb3cfe29
parent837e36583a0003dd1eb33b2cc510d882cc487862 (diff)
downloadhostap-5bcddb9302f96d803bf6a8c47a9652fbfa12dc31.zip
hostap-5bcddb9302f96d803bf6a8c47a9652fbfa12dc31.tar.gz
hostap-5bcddb9302f96d803bf6a8c47a9652fbfa12dc31.tar.bz2
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 <jouni@codeaurora.org>
-rw-r--r--src/common/dpp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index e715e04..bcb694b 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;