diff --git a/ssl/test/test_config.cc b/ssl/test/test_config.cc index c973fb52..d4e44754 100644 --- a/ssl/test/test_config.cc +++ b/ssl/test/test_config.cc @@ -1235,12 +1235,6 @@ bssl::UniquePtr TestConfig::SetupCtx(SSL_CTX *old_ctx) const { SSL_CTX_set_tlsext_servername_callback(ssl_ctx.get(), ServerNameCallback); } - if (!ticket_key.empty() && - !SSL_CTX_set_tlsext_ticket_keys(ssl_ctx.get(), ticket_key.data(), - ticket_key.size())) { - return nullptr; - } - if (enable_early_data) { SSL_CTX_set_early_data_enabled(ssl_ctx.get(), 1); } @@ -1284,8 +1278,13 @@ bssl::UniquePtr TestConfig::SetupCtx(SSL_CTX *old_ctx) const { return nullptr; } CopySessions(ssl_ctx.get(), old_ctx); + } else if (!ticket_key.empty() && + !SSL_CTX_set_tlsext_ticket_keys(ssl_ctx.get(), ticket_key.data(), + ticket_key.size())) { + return nullptr; } + if (install_cert_compression_algs && (!SSL_CTX_add_cert_compression_alg( ssl_ctx.get(), 0xff02,