Lines Matching refs:test_ctx

860 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer)
877 || !TEST_true(test_ctx->handshake_mode
879 || test_ctx->handshake_mode
881 || test_ctx->handshake_mode
883 || test_ctx->handshake_mode
885 || test_ctx->handshake_mode
892 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size;
895 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER
897 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT
914 if (test_ctx->extra.client.no_extms_on_reneg) {
918 if (test_ctx->extra.client.reneg_ciphers != NULL) {
920 test_ctx->extra.client.reneg_ciphers)) {
952 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_KEY_UPDATE_SERVER
953 || test_ctx->handshake_mode
956 != (test_ctx->handshake_mode
962 ret = SSL_key_update(peer->ssl, test_ctx->key_update_type);
975 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_POST_HANDSHAKE_AUTH) {
978 if (test_ctx->extra.server.force_pha)
1070 static int renegotiate_op(const SSL_TEST_CTX *test_ctx)
1072 switch (test_ctx->handshake_mode) {
1080 static int post_handshake_op(const SSL_TEST_CTX *test_ctx)
1082 switch (test_ctx->handshake_mode) {
1092 static connect_phase_t next_phase(const SSL_TEST_CTX *test_ctx,
1097 if (renegotiate_op(test_ctx) || post_handshake_op(test_ctx))
1103 if (post_handshake_op(test_ctx))
1119 static void do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer,
1130 do_reneg_setup_step(test_ctx, peer);
1382 * within |test_ctx|. When configuring the handshake, general mode settings
1383 * are taken from |test_ctx|, and client/server-specific settings should be
1386 * The configuration code should never reach into |test_ctx->extra| or
1387 * |test_ctx->resume_extra| directly.
1395 const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra,
1432 test_ctx, extra, &server_ctx_data,
1440 if (test_ctx->enable_client_sctp_label_bug)
1442 if (test_ctx->enable_server_sctp_label_bug)
1456 server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size;
1457 client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size;
1473 if (test_ctx->use_sctp) {
1499 if (test_ctx->use_sctp) {
1534 do_connect_step(test_ctx, &client, phase);
1540 do_connect_step(test_ctx, &server, phase);
1548 phase = next_phase(test_ctx, phase);
1573 if (test_ctx->use_sctp) {
1723 const SSL_TEST_CTX *test_ctx)
1729 test_ctx, &test_ctx->extra,
1732 || test_ctx->handshake_mode != SSL_TEST_HANDSHAKE_RESUME
1744 test_ctx, &test_ctx->resume_extra,