Commit d4da95a7 authored by Peter Wu's avatar Peter Wu Committed by Matt Caswell
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5702)
parent 01a2a654
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;

+0 −2
Original line number Diff line number Diff line
@@ -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;