aboutsummaryrefslogtreecommitdiff
path: root/test/rsa_test.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2021-02-22 12:55:25 -0500
committerTomas Mraz <tomas@openssl.org>2021-03-01 10:56:12 +0100
commitb0aae913246af1d07e728d24f53f55028f61c696 (patch)
tree472478434dd9894a817e00d4eb56dd8197cc717a /test/rsa_test.c
parentd546e8e267bfddc1ca310dfa8b9a72ab4f9aac7c (diff)
downloadopenssl-b0aae913246af1d07e728d24f53f55028f61c696.zip
openssl-b0aae913246af1d07e728d24f53f55028f61c696.tar.gz
openssl-b0aae913246af1d07e728d24f53f55028f61c696.tar.bz2
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/rsa_test.c')
-rw-r--r--test/rsa_test.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/rsa_test.c b/test/rsa_test.c
index 5e3a662..c2c8b6e 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;