Allow EVP_PKEY_get0_RSA for RSA-PSS keys
authorTobias Nießen <tniessen@tnie.de>
Fri, 18 Oct 2019 18:44:49 +0000 (20:44 +0200)
committerMatt Caswell <matt@openssl.org>
Mon, 28 Oct 2019 11:11:34 +0000 (11:11 +0000)
commit4088b9263676748f5426cae1bcff132825a48d2a
tree027bc0e3d89d2ad48b7b83635227b320b75cdf89
parentc2183fdc1a9cd60bbfe8823822def0d09aa5ef3a
Allow EVP_PKEY_get0_RSA for RSA-PSS keys

RSA-PSS keys use the same internal structure as RSA keys but do not
allow accessing it through EVP_PKEY_get0_RSA. This commit changes that
behavior.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10217)

(cherry picked from commit 465a58b117d5a85623f3998d6fbf2fe8712a5604)
crypto/evp/p_lib.c