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:02 +0000 (18:08 +0200)
commit4ad3a44ba45a4026170336161228d435f6784564
tree6e7e1eeec962ffac11c39b76ad829a9c1dc95dcc
parent15a39e7025e0ed4e31664c499894006e41582068
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)
crypto/rsa/rsa_backend.c