diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-22 12:55:25 -0500 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-01 10:56:12 +0100 |
commit | b0aae913246af1d07e728d24f53f55028f61c696 (patch) | |
tree | 472478434dd9894a817e00d4eb56dd8197cc717a /test | |
parent | d546e8e267bfddc1ca310dfa8b9a72ab4f9aac7c (diff) | |
download | openssl-new-b0aae913246af1d07e728d24f53f55028f61c696.tar.gz |
Remove RSA SSLv23 padding mode
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14248)
Diffstat (limited to 'test')
-rw-r--r-- | test/rsa_test.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/rsa_test.c b/test/rsa_test.c index 5e3a66233c..c2c8b6ef5e 100644 --- a/test/rsa_test.c +++ b/test/rsa_test.c @@ -278,28 +278,6 @@ static int test_rsa_pkcs1(int idx) NULL, NULL); } -static int test_rsa_sslv23(int idx) -{ - int ret; - - /* Simulate an SSLv2 only client talking to a TLS capable server */ - ret = test_rsa_simple(idx, RSA_PKCS1_PADDING, RSA_SSLV23_PADDING, 1, NULL, - NULL, NULL); - - /* Simulate a TLS capable client talking to an SSLv2 only server */ - ret &= test_rsa_simple(idx, RSA_SSLV23_PADDING, RSA_PKCS1_PADDING, 1, NULL, - NULL, NULL); - - /* - * Simulate a TLS capable client talking to a TLS capable server. Should - * fail due to detecting a rollback attack. - */ - ret &= test_rsa_simple(idx, RSA_SSLV23_PADDING, RSA_SSLV23_PADDING, 0, NULL, - NULL, NULL); - - return ret; -} - static int test_rsa_oaep(int idx) { int ret = 0; @@ -411,7 +389,6 @@ err: int setup_tests(void) { ADD_ALL_TESTS(test_rsa_pkcs1, 3); - ADD_ALL_TESTS(test_rsa_sslv23, 3); ADD_ALL_TESTS(test_rsa_oaep, 3); ADD_ALL_TESTS(test_rsa_security_bit, OSSL_NELEM(rsa_security_bits_cases)); return 1; |