EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use
authorRichard Levitte <levitte@openssl.org>
Wed, 30 Sep 2020 15:22:27 +0000 (17:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 1 Oct 2020 17:54:10 +0000 (19:54 +0200)
We've had explicit checks for when to fall back to legacy code for
operations that use an EVP_PKEY.  Unfortunately, the checks were
radically different in different spots, so we refactor that into a
macro that gets used everywhere.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13043)


No differences found