EVP_PKEY_get0_EC_KEY() was added in OpenSSL 1.1.0, so add a
compatibility wrapper for it when building with OpenSSL 1.0.2.
Fixes: c025c2eb5911 ("DPP: DPPEnvelopedData generation for Configurator backup")
Fixes: 7d9e3200544c ("DPP: Received Configurator backup processing")
Signed-off-by: Jouni Malinen <j@w1.fi>
*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