Move EVP_PKEY algorithm implementations into a union
authorMatt Caswell <matt@openssl.org>
Wed, 4 Sep 2019 22:13:25 +0000 (23:13 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 9 Sep 2019 13:00:00 +0000 (14:00 +0100)
commit864b89ce497c57207d04a83e23f96f50dae9d164
tree4db50f1c6e8bad0a30aa05aba423c0055ffb2b89
parent9c45222ddc36124b8826d98dc0794f3eef1e5f0b
Move EVP_PKEY algorithm implementations into a union

An EVP_PKEY can be used for multiple different algorithm operations.
Only one can be used at a time, so we move those into a union.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9753)
crypto/evp/digest.c
crypto/evp/evp_locl.h
crypto/evp/exchange.c
crypto/evp/pmeth_fn.c
crypto/evp/pmeth_lib.c
crypto/include/internal/evp_int.h