diff --git a/src/common/dpp.c b/src/common/dpp.c index f0636b4ac..784961ddd 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -73,6 +73,14 @@ static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, *ps = sig->s; } + +static EC_KEY * EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey) +{ + if (pkey->type != EVP_PKEY_EC) + return NULL; + return pkey->pkey.ec; +} + #endif