Home
last modified time | relevance | path

Searched refs:fixture (Results 1 – 16 of 16) sorted by relevance

/openssl/test/
H A Dcmp_protect_test.c48 OPENSSL_free(fixture); in tear_down()
55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
62 return fixture; in set_up()
77 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test()
87 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test()
131 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test()
150 fixture = NULL; in test_cmp_calc_protection_no_key_no_secret()
164 fixture = NULL; in test_cmp_calc_protection_pkey()
179 fixture = NULL; in test_cmp_calc_protection_pbmac()
337 X509_build_chain(fixture->cert, fixture->certs, NULL, in execute_cmp_build_cert_chain_test()
[all …]
H A Dcmp_msg_test.c43 OPENSSL_free(fixture); in tear_down()
52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
63 return fixture; in set_up()
97 EXECUTE_MSG_CREATION_TEST(ossl_cmp_error_new(fixture->cmp_ctx, fixture->si, in execute_errormsg_create_test()
110 (fixture->cmp_ctx, fixture->fail_info, NULL)); in execute_certconf_create_test()
126 (fixture->cmp_ctx, fixture->bodytype)); in execute_pkimessage_create_test()
158 fixture = NULL; in test_cmp_create_ir_protection_set()
175 fixture = NULL; in test_cmp_create_ir_protection_fails()
199 fixture = NULL; in test_cmp_create_cr()
213 fixture = NULL; in test_cmp_create_certreq_with_invalid_bodytype()
[all …]
H A Dcmp_vfy_test.c47 OPENSSL_free(fixture); in tear_down()
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
72 return fixture; in set_up()
105 ossl_cmp_verify_popo(fixture->cmp_ctx, fixture->msg, in execute_verify_popo_test()
165 fixture = NULL; in test_validate_msg_mac_alg_protection()
187 fixture = NULL; in test_validate_msg_mac_alg_protection_bad()
218 fixture = NULL; in test_validate_msg_signature_partial_chain()
248 fixture = NULL; in test_validate_msg_signature_srvcert_wrong()
263 fixture = NULL; in test_validate_msg_signature_srvcert()
290 fixture = NULL; in test_validate_msg_signature_sender_cert_untrusted()
[all …]
H A Dcmp_client_test.c51 OPENSSL_free(fixture); in tear_down()
60 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
83 fixture->req_type = -1; in set_up()
84 return fixture; in set_up()
87 tear_down(fixture); in set_up()
129 fixture->expected = 1; in test_exec_RR_ses()
142 fixture->expected = 0; in test_exec_RR_ses_receive_error()
151 fixture->expected = 1; in test_exec_IR_ses()
155 ossl_cmp_mock_srv_set1_caPubsOut(fixture->srv_ctx, fixture->caPubs); in test_exec_IR_ses()
228 fixture = NULL; in test_exec_P10CR_ses()
[all …]
H A Dct_test.c64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
72 return fixture; in set_up()
75 if (fixture != NULL) in set_up()
77 OPENSSL_free(fixture); in set_up()
84 if (fixture != NULL) { in tear_down()
88 OPENSSL_free(fixture); in tear_down()
237 sct_text_len = read_text_file(fixture->sct_dir, fixture->sct_text_file, in execute_cert_test()
317 if (!TEST_mem_eq(fixture->tls_sct_list, fixture->tls_sct_list_len, in execute_cert_test()
379 fixture->expected_sct_count = fixture->expected_valid_sct_count = 1; in test_verify_one_sct()
391 fixture->expected_sct_count = fixture->expected_valid_sct_count = 3; in test_verify_multiple_scts()
[all …]
H A Dcmp_asn_test.c28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
31 return fixture; in set_up()
37 if (fixture->tgt_string != fixture->src_string) in tear_down()
40 OPENSSL_free(fixture); in tear_down()
59 fixture->expected = 1; in test_cmp_asn1_get_int()
80 fixture->expected = 1; in test_ASN1_OCTET_STRING_set()
85 tear_down(fixture); in test_ASN1_OCTET_STRING_set()
86 fixture = NULL; in test_ASN1_OCTET_STRING_set()
95 fixture->expected = 1; in test_ASN1_OCTET_STRING_set_tgt_is_src()
97 || !(fixture->tgt_string = fixture->src_string) in test_ASN1_OCTET_STRING_set_tgt_is_src()
[all …]
H A Dcmp_hdr_test.c28 OPENSSL_free(fixture); in tear_down()
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
42 return fixture; in set_up()
45 tear_down(fixture); in set_up()
63 fixture->expected = 1; in test_HDR_set_get_pvno()
84 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test()
98 fixture->expected = 1; in test_HDR_get0_senderNonce()
127 fixture->expected = 1; in test_HDR_set1_sender()
403 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test()
442 fixture = NULL; in test_HDR_init_with_ref()
[all …]
H A Dssl_test_ctx_test.c112 SSL_TEST_CTX_TEST_FIXTURE *fixture; in set_up() local
114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
116 fixture->test_case_name = test_case_name; in set_up()
118 OPENSSL_free(fixture); in set_up()
121 return fixture; in set_up()
142 SSL_TEST_CTX_free(fixture->expected_ctx); in tear_down()
143 OPENSSL_free(fixture); in tear_down()
154 fixture->test_section = "ssltest_default"; in test_empty_configuration()
163 fixture->test_section = "ssltest_good"; in test_good_configuration()
166 fixture->expected_ctx->app_data_size = 1024; in test_good_configuration()
[all …]
H A Dcmp_status_test.c24 CMP_STATUS_TEST_FIXTURE *fixture; in set_up() local
26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
28 fixture->test_case_name = test_case_name; in set_up()
29 return fixture; in set_up()
32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture) in tear_down() argument
34 OPENSSL_free(fixture); in tear_down()
41 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture) in execute_PKISI_test() argument
54 if (!TEST_int_eq(fixture->pkistatus, status) in execute_PKISI_test()
61 || !TEST_mem_eq(fixture->text, strlen(fixture->text), in execute_PKISI_test()
65 if (!TEST_int_eq(fixture->pkifailure, in execute_PKISI_test()
[all …]
H A Dcipherlist_test.c33 if (fixture != NULL) { in tear_down()
36 fixture->server = fixture->client = NULL; in tear_down()
37 OPENSSL_free(fixture); in tear_down()
45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
50 tear_down(fixture); in set_up()
53 return fixture; in set_up()
186 return fixture != NULL in execute_test()
210 fixture = NULL; in test_default_cipherlist_explicit()
243 tear_down(fixture); in test_default_cipherlist_clear()
257 tear_down(fixture); in test_stdname_cipherlist()
[all …]
H A Dcmp_server_test.c25 static void tear_down(CMP_SRV_TEST_FIXTURE *fixture) in tear_down() argument
27 OSSL_CMP_SRV_CTX_free(fixture->srv_ctx); in tear_down()
28 OPENSSL_free(fixture); in tear_down()
33 CMP_SRV_TEST_FIXTURE *fixture; in set_up() local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
37 fixture->test_case_name = test_case_name; in set_up()
40 return fixture; in set_up()
43 tear_down(fixture); in set_up()
64 OSSL_CMP_SRV_CTX *ctx = fixture->srv_ctx; in execute_test_handle_request()
115 fixture->req = request; in test_handle_request()
[all …]
H A Dkeymgmt_internal_test.c40 static void tear_down(FIXTURE *fixture) in tear_down() argument
42 if (fixture != NULL) { in tear_down()
45 OSSL_LIB_CTX_free(fixture->ctx1); in tear_down()
46 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down()
47 OPENSSL_free(fixture); in tear_down()
53 FIXTURE *fixture; in set_up() local
55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))) in set_up()
57 || !TEST_ptr(fixture->prov1 = OSSL_PROVIDER_load(fixture->ctx1, in set_up()
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
62 tear_down(fixture); in set_up()
[all …]
H A Dcmp_ctx_test.c23 if (fixture != NULL) in tear_down()
24 OSSL_CMP_CTX_free(fixture->ctx); in tear_down()
25 OPENSSL_free(fixture); in tear_down()
30 OSSL_CMP_CTX_TEST_FIXTURE *fixture; in set_up() local
32 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
35 tear_down(fixture); in set_up()
39 return fixture; in set_up()
62 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reinit_test()
138 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_print_errors_test()
338 CMP_CTX *ctx = fixture->ctx; \
[all …]
H A Dmodes_internal_test.c183 static int execute_cts128(const CTS128_FIXTURE *fixture, int num) in execute_cts128() argument
197 TEST_info("%s_vector_%lu", fixture->case_name, (unsigned long)len); in execute_cts128()
199 tail = fixture->last_blocks_correction(orig_vector, vector, len); in execute_cts128()
203 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128()
212 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128()
222 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128()
232 if (!TEST_size_t_eq(fixture->decrypt_stream(ciphertext, cleartext, len, in execute_cts128()
H A Dtestutil.h100 TEST_FIXTURE_TYPE *fixture = set_up(TEST_CASE_NAME); \
103 if (fixture == NULL) \
108 if (fixture != NULL) {\
109 result = execute_func(fixture);\
110 tear_down(fixture);\
/openssl/util/
H A Dcheck-format-test-negatives.c362 TEST_FIXTURE *fixture) \
364 CTX *ctx = fixture->ctx; \

Completed in 171 milliseconds