Home
last modified time | relevance | path

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

/openssl/test/
H A Dcmp_protect_test.c41 if (fixture != NULL) { in tear_down()
58 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
65 return fixture; in set_up()
83 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test()
93 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test()
124 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test()
141 fixture = NULL; in test_cmp_calc_protection_no_key_no_secret()
155 fixture = NULL; in test_cmp_calc_protection_pkey()
169 fixture = NULL; in test_cmp_calc_protection_pkey_Ed()
344 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()
127 (fixture->cmp_ctx, fixture->bodytype)); in execute_pkimessage_create_test()
159 fixture = NULL; in test_cmp_create_ir_protection_set()
176 fixture = NULL; in test_cmp_create_ir_protection_fails()
200 fixture = NULL; in test_cmp_create_cr()
214 fixture = NULL; in test_cmp_create_certreq_with_invalid_bodytype()
234 fixture = NULL; in test_cmp_create_p10cr()
[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()
112 ossl_cmp_verify_popo(fixture->cmp_ctx, fixture->msg, in execute_verify_popo_test()
167 fixture = NULL; in test_validate_msg_mac_alg_protection()
204 fixture = NULL; in test_validate_msg_mac_alg_protection_bad()
235 fixture = NULL; in test_validate_msg_signature_partial_chain()
271 fixture = NULL; in test_validate_msg_signature_srvcert()
310 fixture = NULL; in test_validate_msg_signature_sender_cert_untrusted()
325 fixture = NULL; in test_validate_msg_signature_sender_cert_trusted()
[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_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()
85 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test()
103 fixture->expected = 1; in test_HDR_get0_senderNonce()
137 fixture->expected = 1; in test_HDR_set1_sender()
417 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test()
456 fixture = NULL; in test_HDR_init_with_ref()
[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()
84 fixture->req_type = -1; in set_up()
85 return fixture; in set_up()
88 tear_down(fixture); in set_up()
192 ossl_cmp_mock_srv_set1_caPubsOut(fixture->srv_ctx, fixture->caPubs); in test_exec_IR_ses()
339 ctx = fixture->cmp_ctx; in test_exec_P10CR_ses()
345 fixture = NULL; in test_exec_P10CR_ses()
386 fixture->expected = 1; in test_try_certreq_poll()
411 fixture->expected = 1; in test_try_certreq_poll_abort()
[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()
74 fixture->expected = 1; in test_cmp_asn1_get_int()
95 fixture->expected = 1; in test_ASN1_OCTET_STRING_set()
100 tear_down(fixture); in test_ASN1_OCTET_STRING_set()
101 fixture = NULL; in test_ASN1_OCTET_STRING_set()
110 fixture->expected = 1; in test_ASN1_OCTET_STRING_set_tgt_is_src()
112 || !(fixture->tgt_string = fixture->src_string) in test_ASN1_OCTET_STRING_set_tgt_is_src()
[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()
40 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture) in execute_PKISI_test() argument
53 if (!TEST_int_eq(fixture->pkistatus, status) in execute_PKISI_test()
60 || !TEST_mem_eq(fixture->text, strlen(fixture->text), in execute_PKISI_test()
64 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()
116 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()
153 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_print_errors_test()
355 CMP_CTX *ctx = fixture->ctx; \
[all …]
H A Dmodes_internal_test.c184 static int execute_cts128(const CTS128_FIXTURE *fixture, int num) in execute_cts128() argument
198 TEST_info("%s_vector_%lu", fixture->case_name, (unsigned long)len); in execute_cts128()
200 tail = fixture->last_blocks_correction(orig_vector, vector, len); in execute_cts128()
204 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128()
213 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128()
223 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128()
233 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.c424 TEST_FIXTURE *fixture) \
426 CTX *ctx = fixture->ctx; \

Completed in 46 milliseconds