Lines Matching refs:test_ctx
878 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer) in do_reneg_setup_step() argument
895 || !TEST_true(test_ctx->handshake_mode in do_reneg_setup_step()
897 || test_ctx->handshake_mode in do_reneg_setup_step()
899 || test_ctx->handshake_mode in do_reneg_setup_step()
901 || test_ctx->handshake_mode in do_reneg_setup_step()
903 || test_ctx->handshake_mode in do_reneg_setup_step()
910 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size; in do_reneg_setup_step()
913 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER in do_reneg_setup_step()
915 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT in do_reneg_setup_step()
932 if (test_ctx->extra.client.no_extms_on_reneg) { in do_reneg_setup_step()
936 if (test_ctx->extra.client.reneg_ciphers != NULL) { in do_reneg_setup_step()
938 test_ctx->extra.client.reneg_ciphers)) { in do_reneg_setup_step()
970 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_KEY_UPDATE_SERVER in do_reneg_setup_step()
971 || test_ctx->handshake_mode in do_reneg_setup_step()
974 != (test_ctx->handshake_mode in do_reneg_setup_step()
980 ret = SSL_key_update(peer->ssl, test_ctx->key_update_type); in do_reneg_setup_step()
993 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_POST_HANDSHAKE_AUTH) { in do_reneg_setup_step()
1002 if (test_ctx->extra.server.force_pha) in do_reneg_setup_step()
1094 static int renegotiate_op(const SSL_TEST_CTX *test_ctx) in renegotiate_op() argument
1096 switch (test_ctx->handshake_mode) { in renegotiate_op()
1104 static int post_handshake_op(const SSL_TEST_CTX *test_ctx) in post_handshake_op() argument
1106 switch (test_ctx->handshake_mode) { in post_handshake_op()
1116 static connect_phase_t next_phase(const SSL_TEST_CTX *test_ctx, in next_phase() argument
1121 if (renegotiate_op(test_ctx) || post_handshake_op(test_ctx)) in next_phase()
1127 if (post_handshake_op(test_ctx)) in next_phase()
1143 static void do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer, in do_connect_step() argument
1154 do_reneg_setup_step(test_ctx, peer); in do_connect_step()
1419 const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra, in do_handshake_internal() argument
1456 test_ctx, extra, &server_ctx_data, in do_handshake_internal()
1464 if (test_ctx->enable_client_sctp_label_bug) in do_handshake_internal()
1466 if (test_ctx->enable_server_sctp_label_bug) in do_handshake_internal()
1480 server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size; in do_handshake_internal()
1481 client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size; in do_handshake_internal()
1497 if (test_ctx->use_sctp) { in do_handshake_internal()
1523 if (test_ctx->use_sctp) { in do_handshake_internal()
1558 do_connect_step(test_ctx, &client, phase); in do_handshake_internal()
1564 do_connect_step(test_ctx, &server, phase); in do_handshake_internal()
1572 phase = next_phase(test_ctx, phase); in do_handshake_internal()
1597 if (test_ctx->use_sctp) { in do_handshake_internal()
1747 const SSL_TEST_CTX *test_ctx) in do_handshake() argument
1753 test_ctx, &test_ctx->extra, in do_handshake()
1756 || test_ctx->handshake_mode != SSL_TEST_HANDSHAKE_RESUME in do_handshake()
1768 test_ctx, &test_ctx->resume_extra, in do_handshake()