]> git.ipfire.org Git - thirdparty/openssl.git/commit
remove sanity check from ossl_rsa_todata
authorNeil Horman <nhorman@openssl.org>
Tue, 5 Sep 2023 16:08:19 +0000 (12:08 -0400)
committerTomas Mraz <tomas@openssl.org>
Wed, 18 Oct 2023 16:08:55 +0000 (18:08 +0200)
commit37332807a0bfcb9aca8e70d2ebb72cdb81ab379a
tree8ecaeae8d96f4f1d852df8efba4b0f0fd8e8aebe
parentf0c3bb1ac11fb25659f0b88a769d8a10edf82355
remove sanity check from ossl_rsa_todata

Theres no reason we should gate ossl_rsa_todata on there being a minimum
set of parameters. EVP_PKEY_todata makes no guarantees about the
validity of a key, it only returns the parameters that are set in the
requested key, whatever they may be.  Remove the check.

Fixes #21935

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22334)

(cherry picked from commit 4ad3a44ba45a4026170336161228d435f6784564)
crypto/rsa/rsa_backend.c