EVP: legacy_ctrl_to_param() to handle provider side keys
authorRichard Levitte <levitte@openssl.org>
Thu, 9 Apr 2020 04:07:54 +0000 (06:07 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 10 Apr 2020 20:15:25 +0000 (22:15 +0200)
commitcc572c25647f6ab0c026a4a3057dc706e4a4a412
treeebfee1deb16df7116a8cae542b3ff62d5ad08e29
parentaec8de1a5f0b3f6e6279266b45836d6c9f6878df
EVP: legacy_ctrl_to_param() to handle provider side keys

There was one spot where this function would look at ctx->pmeth
directly to determine if it's for RSASSA-PSS, which fails when
presented with an EVP_PKEY_CTX holding a provider side key.
Switching to use EVP_PKEY_is_a() should make things better.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11501)
crypto/evp/pmeth_lib.c