Parcourir la source

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>
Jouni Malinen il y a 7 ans
Parent
commit
809c675029
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/common/dpp.c

+ 4 - 0
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;