aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-07-17 09:26:44 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-17 09:26:44 (GMT)
commit809c675029fed0cfc9ce692e98439c14fb68c42a (patch)
tree4c3d50c5ab15763425342741299b59bf6680e647 /src
parent89971d8b1e328a2f79699c953625d1671fd40384 (diff)
downloadhostap-809c675029fed0cfc9ce692e98439c14fb68c42a.zip
hostap-809c675029fed0cfc9ce692e98439c14fb68c42a.tar.gz
hostap-809c675029fed0cfc9ce692e98439c14fb68c42a.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/common/dpp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index 026c81e..e98a133 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;