- if (!TEST_int_eq(ctx->method, ctx2->method)) {
- TEST_info("Method mismatch: %s vs %s.",
- ssl_test_method_name(ctx->method),
- ssl_test_method_name(ctx2->method));
- return 0;
- }
- if (!TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode)) {
- TEST_info("HandshakeMode mismatch: %s vs %s.",
- ssl_handshake_mode_name(ctx->handshake_mode),
- ssl_handshake_mode_name(ctx2->handshake_mode));
- return 0;
- }
- if (!TEST_int_eq(ctx->app_data_size, ctx2->app_data_size))
- return 0;
-
- if (!TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size))
- return 0;
-
- if (!SSL_TEST_EXTRA_CONF_equal(&ctx->extra, &ctx2->extra))
- return 0;
- if (!SSL_TEST_EXTRA_CONF_equal(&ctx->resume_extra, &ctx2->resume_extra))
- return 0;
-
- if (!TEST_int_eq(ctx->expected_result, ctx2->expected_result)) {
- TEST_info("ExpectedResult mismatch: %s vs %s.",
- ssl_test_result_name(ctx->expected_result),
- ssl_test_result_name(ctx2->expected_result));
- return 0;
- }
- if (!TEST_int_eq(ctx->expected_client_alert, ctx2->expected_client_alert)) {
- TEST_info("ClientAlert mismatch: %s vs %s.",
- ssl_alert_name(ctx->expected_client_alert),
- ssl_alert_name(ctx2->expected_client_alert));
- return 0;
- }
- if (!TEST_int_eq(ctx->expected_server_alert, ctx2->expected_server_alert)) {
- TEST_info("ServerAlert mismatch: %s vs %s.",
- ssl_alert_name(ctx->expected_server_alert),
- ssl_alert_name(ctx2->expected_server_alert));
- return 0;
- }
- if (!TEST_int_eq(ctx->expected_protocol, ctx2->expected_protocol)) {
- TEST_info("ClientAlert mismatch: %s vs %s.",
- ssl_protocol_name(ctx->expected_protocol),
- ssl_protocol_name(ctx2->expected_protocol));
- return 0;
- }
- if (!TEST_int_eq(ctx->expected_servername, ctx2->expected_servername)) {
- TEST_info("ExpectedServerName mismatch: %s vs %s.",
- ssl_servername_name(ctx->expected_servername),
- ssl_servername_name(ctx2->expected_servername));
- return 0;
- }
- if (!TEST_int_eq(ctx->session_ticket_expected,
- ctx2->session_ticket_expected)) {
- TEST_info("SessionTicketExpected mismatch: %s vs %s.",
- ssl_session_ticket_name(ctx->session_ticket_expected),
- ssl_session_ticket_name(ctx2->session_ticket_expected));
- return 0;
- }
- if (!TEST_int_eq(ctx->compression_expected, ctx2->compression_expected)) {
- TEST_info("ComrpessionExpected mismatch: %d vs %d.",
- ctx->compression_expected,
- ctx2->compression_expected);
- return 0;
- }
- if (!TEST_str_eq(ctx->expected_npn_protocol, ctx2->expected_npn_protocol))
- return 0;
- if (!TEST_str_eq(ctx->expected_alpn_protocol, ctx2->expected_alpn_protocol))
- return 0;
- if (!TEST_int_eq(ctx->resumption_expected, ctx2->resumption_expected))
+ if (!TEST_int_eq(ctx->method, ctx2->method)
+ || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode)
+ || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size)
+ || !TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size)
+ || !extraconf_eq(&ctx->extra, &ctx2->extra)
+ || !extraconf_eq(&ctx->resume_extra, &ctx2->resume_extra)
+ || !TEST_int_eq(ctx->expected_result, ctx2->expected_result)
+ || !TEST_int_eq(ctx->expected_client_alert,
+ ctx2->expected_client_alert)
+ || !TEST_int_eq(ctx->expected_server_alert,
+ ctx2->expected_server_alert)
+ || !TEST_int_eq(ctx->expected_protocol, ctx2->expected_protocol)
+ || !TEST_int_eq(ctx->expected_servername, ctx2->expected_servername)
+ || !TEST_int_eq(ctx->session_ticket_expected,
+ ctx2->session_ticket_expected)
+ || !TEST_int_eq(ctx->compression_expected,
+ ctx2->compression_expected)
+ || !TEST_str_eq(ctx->expected_npn_protocol,
+ ctx2->expected_npn_protocol)
+ || !TEST_str_eq(ctx->expected_alpn_protocol,
+ ctx2->expected_alpn_protocol)
+ || !TEST_str_eq(ctx->expected_cipher,
+ ctx2->expected_cipher)
+ || !TEST_str_eq(ctx->expected_session_ticket_app_data,
+ ctx2->expected_session_ticket_app_data)
+ || !TEST_int_eq(ctx->resumption_expected,
+ ctx2->resumption_expected)
+ || !TEST_int_eq(ctx->session_id_expected,
+ ctx2->session_id_expected))