]> git.ipfire.org Git - thirdparty/openssl.git/commit - include/crypto/evp.h
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)
commitf21c9c64f53484d4abe25b76d29350ed683db855
treee604b9ba7f95fb1b92314c71b0d564ecac3ed074
parent7d80985e178d77226392f9c35c36f3f885b884d7
EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use

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)
crypto/evp/asymcipher.c
crypto/evp/exchange.c
crypto/evp/m_sigver.c
crypto/evp/signature.c
include/crypto/evp.h