Revise EVP_PKEY param handling
authorMatt Caswell <matt@openssl.org>
Wed, 4 Sep 2019 11:46:02 +0000 (12:46 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 9 Sep 2019 13:00:00 +0000 (14:00 +0100)
commit9c45222ddc36124b8826d98dc0794f3eef1e5f0b
treeab9140d515d73f044944d4998244b047282ada0d
parent21fb7067228e39633755aeba251e925634e64870
Revise EVP_PKEY param handling

We add new functions for getting parameters and discovering the gettable
and settable parameters. We also make EVP_PKEY_CTX_get_signature_md() a
function and implement it in terms of the new functions.

This enables applications to discover the set of parameters that are
supported for a given algorithm implementation.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9753)
13 files changed:
crypto/evp/evp_locl.h
crypto/evp/exchange.c
crypto/evp/pmeth_fn.c
crypto/evp/pmeth_lib.c
doc/man3/EVP_PKEY_CTX_ctrl.pod
doc/man7/provider-keyexch.pod
doc/man7/provider-signature.pod
include/openssl/core_numbers.h
include/openssl/evp.h
providers/common/exchange/dh_exch.c
providers/common/signature/dsa.c
test/evp_extra_test.c
util/libcrypto.num