aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-04-14 20:53:35 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-14 21:01:35 (GMT)
commit4b603f01dec28d9ae022effb060a15e5a84b1f0c (patch)
tree14acecb4b58311543195168c47380861da4ff19f
parentdee566d98e85e00b917d3eff42cd7e969de089cc (diff)
downloadhostap-4b603f01dec28d9ae022effb060a15e5a84b1f0c.zip
hostap-4b603f01dec28d9ae022effb060a15e5a84b1f0c.tar.gz
hostap-4b603f01dec28d9ae022effb060a15e5a84b1f0c.tar.bz2
DPP: Fix X509_ALGOR_get0() use with LibreSSL
At least LibreSSL v2.7.2 indicates support for OpenSSL API 1.1.0, but it does not apparently use const ASN1_OBJECT * with X509_ALGOR_get0(). Use the older non-const version here with LibreSSL to fix compilation. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/common/dpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index 805507c..f9bf8c2 100644
--- a/src/common/dpp.c
+++ b/src/common/dpp.c
@@ -811,7 +811,7 @@ 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
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
ASN1_OBJECT *pa_oid;
#else
const ASN1_OBJECT *pa_oid;