From d4da95a7736e9e74ec47f9e0077ad0ef18a4faf6 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 21 Mar 2018 19:44:44 +0100 Subject: [PATCH] test: Remove redundant SSL_CTX_set_max_early_data Client can only send early data if the PSK allows for it, the max_early_data_size field can only be configured for the server side. Reviewed-by: Rich Salz Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/5702) --- test/sslapitest.c | 4 ---- test/tls13ccstest.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/test/sslapitest.c b/test/sslapitest.c index e97b228696..5fef058dfc 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -382,8 +382,6 @@ static int test_keylog_no_master_key(void) TLS1_VERSION, TLS_MAX_VERSION, &sctx, &cctx, cert, privkey)) || !TEST_true(SSL_CTX_set_max_early_data(sctx, - SSL3_RT_MAX_PLAIN_LENGTH)) - || !TEST_true(SSL_CTX_set_max_early_data(cctx, SSL3_RT_MAX_PLAIN_LENGTH))) return 0; @@ -1706,8 +1704,6 @@ static int setupearly_data_test(SSL_CTX **cctx, SSL_CTX **sctx, SSL **clientssl, TLS1_VERSION, TLS_MAX_VERSION, sctx, cctx, cert, privkey)) || !TEST_true(SSL_CTX_set_max_early_data(*sctx, - SSL3_RT_MAX_PLAIN_LENGTH)) - || !TEST_true(SSL_CTX_set_max_early_data(*cctx, SSL3_RT_MAX_PLAIN_LENGTH))) return 0; diff --git a/test/tls13ccstest.c b/test/tls13ccstest.c index 41e4896fa9..25dc8192c5 100644 --- a/test/tls13ccstest.c +++ b/test/tls13ccstest.c @@ -258,8 +258,6 @@ static int test_tls13ccs(int tst) TLS1_VERSION, TLS_MAX_VERSION, &sctx, &cctx, cert, privkey)) || !TEST_true(SSL_CTX_set_max_early_data(sctx, - SSL3_RT_MAX_PLAIN_LENGTH)) - || !TEST_true(SSL_CTX_set_max_early_data(cctx, SSL3_RT_MAX_PLAIN_LENGTH))) goto err; -- 2.25.1