From: Jouni Malinen Date: Sun, 19 Apr 2020 13:58:59 +0000 (+0300) Subject: DPP2: Silence compiler warning with no-CONFIG_DPP2 and OpenSSL 1.0.2 X-Git-Tag: hostap_2_10~1426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e6383f31a09c3c3bb9b7b93f6b1d2856d66e487;p=thirdparty%2Fhostap.git DPP2: Silence compiler warning with no-CONFIG_DPP2 and OpenSSL 1.0.2 EVP_PKEY_get0_EC_KEY() compatibility wrapper is used only within CONFIG_DPP2 blocks, so define it with matching condition. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index c4ee9b8ab..080c86aab 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -74,12 +74,14 @@ static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, } +#ifdef CONFIG_DPP2 static EC_KEY * EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey) { if (pkey->type != EVP_PKEY_EC) return NULL; return pkey->pkey.ec; } +#endif /* CONFIG_DPP2 */ #endif