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 <j@w1.fi>
This commit is contained in:
parent
f23b70f163
commit
3e6383f31a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue