]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix build with OpenSSL 1.1.0
authorJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 09:26:44 +0000 (12:26 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 09:26:44 +0000 (12:26 +0300)
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>
src/common/dpp.c

index 026c81e5e71b0dae96d9ace00d6c5638c7fb3a9f..e98a1339005f6575f19cb13b7650787304460fa2 100644 (file)
@@ -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;