/freebsd/crypto/openssl/test/ |
H A D | ssl_test.c | 34 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 …]
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssl_test_ctx.c | 101 __owur static int parse_expected_result(SSL_TEST_CTX *test_ctx, const char *value) in parse_expected_result() argument 108 test_ctx->expected_result = ret_value; in parse_expected_result() 134 __owur static int parse_client_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_client_alert() argument 136 return parse_alert(&test_ctx->expected_client_alert, value); in parse_client_alert() 139 __owur static int parse_server_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_server_alert() argument 141 return parse_alert(&test_ctx->expected_server_alert, value); in parse_server_alert() 161 __owur static int parse_protocol(SSL_TEST_CTX *test_ctx, const char *value) in parse_protocol() argument 164 &test_ctx->expected_protocol, value); in parse_protocol() 221 __owur static int parse_expected_servername(SSL_TEST_CTX *test_ctx, in parse_expected_servername() argument 229 test_ctx->expected_servername = ret_value; in parse_expected_servername() [all …]
|
H A D | handshake.c | 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() [all …]
|
H A D | pkcs12.c | 29 static OSSL_LIB_CTX *test_ctx = NULL; variable 64 test_ctx = libctx; in PKCS12_helper_set_libctx() 162 p12 = PKCS12_add_safes_ex(pb->safes, 0, test_ctx, test_propq); in generate_p12() 173 md = EVP_MD_fetch(test_ctx, OBJ_nid2sn(mac->nid), test_propq); in generate_p12() 215 p12 = PKCS12_init_ex(NID_pkcs7_data, test_ctx, test_propq); in from_bio_p12() 299 enc->iter, enc->pass, test_ctx, in end_contentinfo_encrypted() 438 test_ctx, test_propq); in add_keybag() 619 p8 = PKCS12_decrypt_skey_ex(bag, enc->pass, strlen(enc->pass), test_ctx, test_propq); in check_keybag()
|
H A D | handshake.h | 89 const SSL_TEST_CTX *test_ctx);
|
/freebsd/tools/regression/sockets/udp_pingpong/ |
H A D | udp_pingpong.c | 78 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 …]
|
/freebsd/tests/sys/kern/ |
H A D | listener_wakeup.c | 207 struct test_ctx { struct 215 struct test_ctx *ctx = data; in sleep_syscall_thread() argument 231 struct test_ctx ctx = { in run_tests()
|
/freebsd/crypto/openssl/apps/ |
H A D | speed.c | 3539 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local 3567 if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */ in speed_main() 3568 || EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */ in speed_main() 3569 || EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */ in speed_main() 3570 || EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */ in speed_main() 3572 … || EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */ in speed_main() 3596 EVP_PKEY_CTX_free(test_ctx); in speed_main() 3597 test_ctx = NULL; in speed_main() 3879 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local 3992 test_ctx = EVP_PKEY_CTX_new(pkey_B, NULL); in speed_main() [all …]
|
/freebsd/tests/sys/file/ |
H A D | flock_helper.c | 1413 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()
|