Remove TODO in rsa_ameth.c
authorShane Lontis <shane.lontis@oracle.com>
Fri, 12 Mar 2021 02:32:44 +0000 (12:32 +1000)
committerPauli <ppzgs1@gmail.com>
Sun, 14 Mar 2021 05:37:18 +0000 (15:37 +1000)
commit0fc39c9030df3e313c7ee08a3aefec8ab44bcd9a
tree34f6ad98787d3bcf0ebe3e95ac712332a5c440cd
parent8bfb8f34580cac3a53b0ac88dec566c19d6c8c53
Remove TODO in rsa_ameth.c

Fixes #14390

The only caller of this function tests EVP_KEYMGMT_is_a() beforehand
which will fail if the RSA key types do not match. So the test is not
necessary. The assert has been removed when it does the test.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14524)
crypto/evp/p_lib.c
crypto/rsa/rsa_ameth.c
test/keymgmt_internal_test.c