summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-03-21 19:44:44 +0100
committerMatt Caswell <matt@openssl.org>2018-04-18 08:15:00 +0100
commitd4da95a7736e9e74ec47f9e0077ad0ef18a4faf6 (patch)
tree01edada03fc8424b2670175443b58d7d7a969f36 /test
parent01a2a65488e18b8b566bd4aa1b4a8b9adb9ecdf8 (diff)
downloadopenssl-new-d4da95a7736e9e74ec47f9e0077ad0ef18a4faf6.tar.gz
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 <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5702)
Diffstat (limited to 'test')
-rw-r--r--test/sslapitest.c4
-rw-r--r--test/tls13ccstest.c2
2 files changed, 0 insertions, 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;