Lines Matching refs:test_ctx
879 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer) in do_reneg_setup_step() argument
896 || !TEST_true(test_ctx->handshake_mode in do_reneg_setup_step()
898 || test_ctx->handshake_mode in do_reneg_setup_step()
900 || test_ctx->handshake_mode in do_reneg_setup_step()
902 || test_ctx->handshake_mode in do_reneg_setup_step()
904 || test_ctx->handshake_mode in do_reneg_setup_step()
911 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size; in do_reneg_setup_step()
914 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER in do_reneg_setup_step()
916 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT in do_reneg_setup_step()
933 if (test_ctx->extra.client.no_extms_on_reneg) { in do_reneg_setup_step()
937 if (test_ctx->extra.client.reneg_ciphers != NULL) { in do_reneg_setup_step()
939 test_ctx->extra.client.reneg_ciphers)) { in do_reneg_setup_step()
971 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_KEY_UPDATE_SERVER in do_reneg_setup_step()
972 || test_ctx->handshake_mode in do_reneg_setup_step()
975 != (test_ctx->handshake_mode in do_reneg_setup_step()
981 ret = SSL_key_update(peer->ssl, test_ctx->key_update_type); in do_reneg_setup_step()
994 } else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_POST_HANDSHAKE_AUTH) { in do_reneg_setup_step()
1003 if (test_ctx->extra.server.force_pha) in do_reneg_setup_step()
1095 static int renegotiate_op(const SSL_TEST_CTX *test_ctx) in renegotiate_op() argument
1097 switch (test_ctx->handshake_mode) { in renegotiate_op()
1105 static int post_handshake_op(const SSL_TEST_CTX *test_ctx) in post_handshake_op() argument
1107 switch (test_ctx->handshake_mode) { in post_handshake_op()
1117 static connect_phase_t next_phase(const SSL_TEST_CTX *test_ctx, in next_phase() argument
1122 if (renegotiate_op(test_ctx) || post_handshake_op(test_ctx)) in next_phase()
1128 if (post_handshake_op(test_ctx)) in next_phase()
1144 static void do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer, in do_connect_step() argument
1155 do_reneg_setup_step(test_ctx, peer); in do_connect_step()
1420 const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra, in do_handshake_internal() argument
1457 test_ctx, extra, &server_ctx_data, in do_handshake_internal()
1465 if (test_ctx->enable_client_sctp_label_bug) in do_handshake_internal()
1467 if (test_ctx->enable_server_sctp_label_bug) in do_handshake_internal()
1481 server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size; in do_handshake_internal()
1482 client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size; in do_handshake_internal()
1498 if (test_ctx->use_sctp) { in do_handshake_internal()
1524 if (test_ctx->use_sctp) { in do_handshake_internal()
1559 do_connect_step(test_ctx, &client, phase); in do_handshake_internal()
1565 do_connect_step(test_ctx, &server, phase); in do_handshake_internal()
1573 phase = next_phase(test_ctx, phase); in do_handshake_internal()
1598 if (test_ctx->use_sctp) { in do_handshake_internal()
1748 const SSL_TEST_CTX *test_ctx) in do_handshake() argument
1754 test_ctx, &test_ctx->extra, in do_handshake()
1757 || test_ctx->handshake_mode != SSL_TEST_HANDSHAKE_RESUME in do_handshake()
1769 test_ctx, &test_ctx->resume_extra, in do_handshake()