]> git.ipfire.org Git - thirdparty/openssl.git/commit
Decentralize legacy_ctrl_str_to_param()
authorRichard Levitte <levitte@openssl.org>
Sat, 25 Jan 2020 11:27:47 +0000 (12:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 4 Feb 2020 18:32:37 +0000 (19:32 +0100)
commit972fa31895b38cbe91a87a04875f7dadee387dea
tree2b98575a48ad5d97e0d7167146cc57f57d3be2b5
parent6d53ad6b5cf726d92860e973d7bc8c1930762086
Decentralize legacy_ctrl_str_to_param()

This function did a bit too much in terms of central control, actually
more so than the legacy counterpart, where all the string processing
is done in the diverse *_pmeth.c.  Furthermore, there was no room
whatsoever for control keys that libcrypto isn't centrally aware of.

This function is changed to simply translating keys and values to
OSSL_PARAM form and then sent on their merry way to the provider
implementations through EVP_PKEY_CTX_set_params().  It translates
selected well known legacy names to their core name counterpart, and
that's as far as centralized control should extend.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10947)
crypto/evp/pmeth_lib.c