Reorganize the internal evp_keymgmt functions
authorRichard Levitte <levitte@openssl.org>
Mon, 3 Feb 2020 04:42:48 +0000 (05:42 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Feb 2020 08:37:56 +0000 (09:37 +0100)
commit68552cdef7631191e77315e0faeb42c6893cafe3
treeb289807007316a0b0a8dfba53acc5f6fa8dbcc4e
parentbd2ff9e8674b34a7547a7fa75b81b6b36f60dbb8
Reorganize the internal evp_keymgmt functions

Some of the evp_keymgmt_ functions are just wrappers around the
EVP_KEYMGMT function pointers.  We move those from keymgmt_lib.c to
keymgmt_meth.c.

Other evp_keymgmt_ functions are utility functions to help the rest of
the EVP functions.  Since their names are easily confused with the
functions that were moved to keymgmt_meth.c, we rename them so they
all start with evp_keymgmt_util_.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11006)
crypto/evp/exchange.c
crypto/evp/keymgmt_lib.c
crypto/evp/keymgmt_meth.c
crypto/evp/p_lib.c
crypto/evp/pmeth_gn.c
include/crypto/evp.h
test/keymgmt_internal_test.c