EVP: If a key can't be exported to provider, fallback to legacy
authorRichard Levitte <levitte@openssl.org>
Tue, 7 Jan 2020 10:49:08 +0000 (11:49 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 8 Jan 2020 21:30:54 +0000 (22:30 +0100)
commite0d8523e801b7a1fcdda698f9c28dd7a0617cd02
tree6e02db1b8e58c02ef1327b099f557969d2d32bdd
parenta9e4e3c39eb361ddfb438edb27c754947009eed6
EVP: If a key can't be exported to provider, fallback to legacy

Currently, the operations that do try to export a legacy key to
providers will fail if the export failed.  It makes more sense to
simply use the legacy method instead, as a fallback for things not
being implemented (yet) in a provider.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10771)
crypto/evp/exchange.c
crypto/evp/m_sigver.c
crypto/evp/pmeth_fn.c