Lines Matching defs:test_ctx

866 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer)
883 || !TEST_true(test_ctx->handshake_mode
885 || test_ctx->handshake_mode
887 || test_ctx->handshake_mode
889 || test_ctx->handshake_mode
891 || test_ctx->handshake_mode
898 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size;
901 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER
903 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT
920 if (test_ctx->extra.client.no_extms_on_reneg) {
924 if (test_ctx->extra.client.reneg_ciphers != NULL) {
926 test_ctx->extra.client.reneg_ciphers)) {
958 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_KEY_UPDATE_SERVER
959 || test_ctx->handshake_mode
962 != (test_ctx->handshake_mode
968 ret = SSL_key_update(peer->ssl, test_ctx->key_update_type);
981 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_POST_HANDSHAKE_AUTH) {
984 if (test_ctx->extra.server.force_pha)
1076 static int renegotiate_op(const SSL_TEST_CTX *test_ctx)
1078 switch (test_ctx->handshake_mode) {
1086 static int post_handshake_op(const SSL_TEST_CTX *test_ctx)
1088 switch (test_ctx->handshake_mode) {
1098 static connect_phase_t next_phase(const SSL_TEST_CTX *test_ctx,
1103 if (renegotiate_op(test_ctx) || post_handshake_op(test_ctx))
1109 if (post_handshake_op(test_ctx))
1125 static void do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer,
1136 do_reneg_setup_step(test_ctx, peer);
1388 * within |test_ctx|. When configuring the handshake, general mode settings
1389 * are taken from |test_ctx|, and client/server-specific settings should be
1392 * The configuration code should never reach into |test_ctx->extra| or
1393 * |test_ctx->resume_extra| directly.
1401 const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra,
1438 test_ctx, extra, &server_ctx_data,
1446 if (test_ctx->enable_client_sctp_label_bug)
1448 if (test_ctx->enable_server_sctp_label_bug)
1462 server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size;
1463 client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size;
1479 if (test_ctx->use_sctp) {
1505 if (test_ctx->use_sctp) {
1540 do_connect_step(test_ctx, &client, phase);
1546 do_connect_step(test_ctx, &server, phase);
1554 phase = next_phase(test_ctx, phase);
1579 if (test_ctx->use_sctp) {
1729 const SSL_TEST_CTX *test_ctx)
1735 test_ctx, &test_ctx->extra,
1738 || test_ctx->handshake_mode != SSL_TEST_HANDSHAKE_RESUME
1750 test_ctx, &test_ctx->resume_extra,