Home
last modified time | relevance | path

Searched refs:test_ctx (Results 1 – 9 of 9) sorted by relevance

/src/crypto/openssl/test/
H A Dssl_test.c34 static int check_result(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_result() argument
36 if (!TEST_int_eq(result->result, test_ctx->expected_result)) { in check_result()
38 ssl_test_result_name(test_ctx->expected_result), in check_result()
45 static int check_alerts(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_alerts() argument
75 if (test_ctx->expected_client_alert in check_alerts()
81 && (result->client_alert_sent & 0xff) != test_ctx->expected_client_alert) { in check_alerts()
83 print_alert(test_ctx->expected_client_alert), in check_alerts()
88 if (test_ctx->expected_server_alert in check_alerts()
89 && (result->server_alert_sent & 0xff) != test_ctx->expected_server_alert) { in check_alerts()
91 print_alert(test_ctx->expected_server_alert), in check_alerts()
[all …]
/src/crypto/openssl/test/helpers/
H A Dssl_test_ctx.c98 __owur static int parse_expected_result(SSL_TEST_CTX *test_ctx, const char *value) in parse_expected_result() argument
105 test_ctx->expected_result = ret_value; in parse_expected_result()
131 __owur static int parse_client_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_client_alert() argument
133 return parse_alert(&test_ctx->expected_client_alert, value); in parse_client_alert()
136 __owur static int parse_server_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_server_alert() argument
138 return parse_alert(&test_ctx->expected_server_alert, value); in parse_server_alert()
158 __owur static int parse_protocol(SSL_TEST_CTX *test_ctx, const char *value) in parse_protocol() argument
161 &test_ctx->expected_protocol, value); in parse_protocol()
218 __owur static int parse_expected_servername(SSL_TEST_CTX *test_ctx, in parse_expected_servername() argument
226 test_ctx->expected_servername = ret_value; in parse_expected_servername()
[all …]
H A Dhandshake.c876 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer) in do_reneg_setup_step() argument
893 || !TEST_true(test_ctx->handshake_mode in do_reneg_setup_step()
895 || 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()
908 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size; in do_reneg_setup_step()
911 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER in do_reneg_setup_step()
913 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT in do_reneg_setup_step()
930 if (test_ctx->extra.client.no_extms_on_reneg) { in do_reneg_setup_step()
[all …]
H A Dpkcs12.c29 static OSSL_LIB_CTX *test_ctx = NULL; variable
63 test_ctx = libctx; in PKCS12_helper_set_libctx()
156 p12 = PKCS12_add_safes_ex(pb->safes, 0, test_ctx, test_propq); in generate_p12()
167 md = EVP_MD_fetch(test_ctx, OBJ_nid2sn(mac->nid), test_propq); in generate_p12()
208 p12 = PKCS12_init_ex(NID_pkcs7_data, test_ctx, test_propq); in from_bio_p12()
288 enc->iter, enc->pass, test_ctx, in end_contentinfo_encrypted()
425 test_ctx, test_propq); in add_keybag()
610 p8 = PKCS12_decrypt_skey_ex(bag, enc->pass, strlen(enc->pass), test_ctx, test_propq); in check_keybag()
H A Dhandshake.h89 const SSL_TEST_CTX *test_ctx);
/src/tools/regression/sockets/udp_pingpong/
H A Dudp_pingpong.c78 struct test_ctx { struct
121 get_clock_type(struct test_ctx *tcp) in get_clock_type()
138 get_scm_type(struct test_ctx *tcp) in get_scm_type()
159 get_scm_size(struct test_ctx *tcp) in get_scm_size()
178 setup_ts_sockopt(struct test_ctx *tcp, int fd) in setup_ts_sockopt()
225 setup_udp(struct test_ctx *tcp) in setup_udp()
270 setup_udp6(struct test_ctx *tcp) in setup_udp6()
308 teardown_udp(struct test_ctx *tcp) in teardown_udp()
316 send_pkt(struct test_ctx *tcp, int pnum, int fdidx, const char *face) in send_pkt()
337 hdr_extract_ts(struct test_ctx *tcp, struct msghdr *mhp, struct timespec *tp) in hdr_extract_ts()
[all …]
/src/tests/sys/kern/
H A Dlistener_wakeup.c207 struct test_ctx { struct
215 struct test_ctx *ctx = data; in sleep_syscall_thread() argument
231 struct test_ctx ctx = { in run_tests()
/src/crypto/openssl/apps/
H A Dspeed.c3609 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
3637 if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */ in speed_main()
3638 || EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */ in speed_main()
3639 || EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */ in speed_main()
3640 || EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */ in speed_main()
3642 … || EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */ in speed_main()
3666 EVP_PKEY_CTX_free(test_ctx); in speed_main()
3667 test_ctx = NULL; in speed_main()
3947 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
4060 test_ctx = EVP_PKEY_CTX_new(pkey_B, NULL); in speed_main()
[all …]
/src/tests/sys/file/
H A Dflock_helper.c1413 struct test_ctx { struct
1422 struct test_ctx *tc = tc_in; in test16_func() argument
1446 struct test_ctx tc = { .tc_fd = fd }; in test16()