HomeSort by: relevance | last modified time | path
    Searched refs:fixture (Results 1 - 25 of 56) sorted by relevancy

1 2 3

  /src/crypto/external/apache2/openssl/dist/test/
cmp_status_test.c 24 CMP_STATUS_TEST_FIXTURE *fixture; local
26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
28 fixture->test_case_name = test_case_name;
29 return fixture;
32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture)
34 OPENSSL_free(fixture);
40 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture)
47 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus,
48 fixture->pkifailure
    [all...]
cmp_asn_test.c 26 CMP_ASN_TEST_FIXTURE *fixture; local
28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
30 fixture->test_case_name = test_case_name;
31 return fixture;
34 static void tear_down(CMP_ASN_TEST_FIXTURE *fixture)
36 ASN1_OCTET_STRING_free(fixture->src_string);
37 if (fixture->tgt_string != fixture->src_string)
38 ASN1_OCTET_STRING_free(fixture->tgt_string)
    [all...]
cmp_protect_test.c 39 static void tear_down(CMP_PROTECT_TEST_FIXTURE *fixture)
41 if (fixture != NULL) {
42 OSSL_CMP_CTX_free(fixture->cmp_ctx);
43 OSSL_CMP_MSG_free(fixture->msg);
44 OSSL_CMP_PKISI_free(fixture->si);
46 OPENSSL_free(fixture->mem);
47 sk_X509_free(fixture->certs);
48 sk_X509_free(fixture->chain);
50 OPENSSL_free(fixture);
56 CMP_PROTECT_TEST_FIXTURE *fixture; local
    [all...]
cmp_vfy_test.c 43 static void tear_down(CMP_VFY_TEST_FIXTURE *fixture)
45 OSSL_CMP_MSG_free(fixture->msg);
46 OSSL_CMP_CTX_free(fixture->cmp_ctx);
47 OPENSSL_free(fixture);
55 CMP_VFY_TEST_FIXTURE *fixture; local
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
61 fixture->test_case_name = test_case_name;
63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL))
64 || !OSSL_CMP_CTX_set0_trusted(fixture->cmp_ctx, ts
    [all...]
cmp_msg_test.c 38 static void tear_down(CMP_MSG_TEST_FIXTURE *fixture)
40 OSSL_CMP_CTX_free(fixture->cmp_ctx);
41 OSSL_CMP_MSG_free(fixture->msg);
42 OSSL_CMP_PKISI_free(fixture->si);
43 OPENSSL_free(fixture);
50 CMP_MSG_TEST_FIXTURE *fixture; local
52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
54 fixture->test_case_name = test_case_name;
56 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)
    [all...]
ct_test.c 62 CT_TEST_FIXTURE *fixture = NULL; local
64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
66 fixture->test_case_name = test_case_name;
67 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */
68 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new())
70 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1))
72 return fixture;
75 if (fixture != NULL)
76 CTLOG_STORE_free(fixture->ctlog_store)
    [all...]
cipherlist_test.c 30 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture)
32 if (fixture != NULL) {
33 SSL_CTX_free(fixture->server);
34 SSL_CTX_free(fixture->client);
35 fixture->server = fixture->client = NULL;
36 OPENSSL_free(fixture);
42 CIPHERLIST_TEST_FIXTURE *fixture; local
44 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
    [all...]
cmp_hdr_test.c 24 static void tear_down(CMP_HDR_TEST_FIXTURE *fixture)
26 OSSL_CMP_PKIHEADER_free(fixture->hdr);
27 OSSL_CMP_CTX_free(fixture->cmp_ctx);
28 OPENSSL_free(fixture);
33 CMP_HDR_TEST_FIXTURE *fixture; local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
37 fixture->test_case_name = test_case_name;
38 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(NULL, NULL)))
40 if (!TEST_ptr(fixture->hdr = OSSL_CMP_PKIHEADER_new())
    [all...]
ssl_test_ctx_test.c 111 SSL_TEST_CTX_TEST_FIXTURE *fixture; local
113 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
115 fixture->test_case_name = test_case_name;
116 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new(NULL))) {
117 OPENSSL_free(fixture);
120 return fixture;
123 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture)
128 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section,
129 fixture->expected_ctx->libctx)
    [all...]
cmp_client_test.c 46 static void tear_down(CMP_SES_TEST_FIXTURE *fixture)
48 OSSL_CMP_CTX_free(fixture->cmp_ctx);
49 ossl_cmp_mock_srv_free(fixture->srv_ctx);
50 sk_X509_free(fixture->caPubs);
51 OPENSSL_free(fixture);
56 CMP_SES_TEST_FIXTURE *fixture; local
60 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
62 fixture->test_case_name = test_case_name;
63 if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/
cmp_status_test.c 24 CMP_STATUS_TEST_FIXTURE *fixture; local
26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
28 fixture->test_case_name = test_case_name;
29 return fixture;
32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture)
34 OPENSSL_free(fixture);
41 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture)
48 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus,
49 fixture->pkifailure
    [all...]
cmp_asn_test.c 26 CMP_ASN_TEST_FIXTURE *fixture; local
28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
30 fixture->test_case_name = test_case_name;
31 return fixture;
34 static void tear_down(CMP_ASN_TEST_FIXTURE *fixture)
36 ASN1_OCTET_STRING_free(fixture->src_string);
37 if (fixture->tgt_string != fixture->src_string)
38 ASN1_OCTET_STRING_free(fixture->tgt_string)
    [all...]
cmp_protect_test.c 38 static void tear_down(CMP_PROTECT_TEST_FIXTURE *fixture)
40 if (fixture != NULL) {
41 OSSL_CMP_CTX_free(fixture->cmp_ctx);
42 OSSL_CMP_MSG_free(fixture->msg);
43 OSSL_CMP_PKISI_free(fixture->si);
45 OPENSSL_free(fixture->mem);
46 sk_X509_free(fixture->certs);
47 sk_X509_free(fixture->chain);
49 OPENSSL_free(fixture);
55 CMP_PROTECT_TEST_FIXTURE *fixture; local
    [all...]
cmp_client_test.c 48 static void tear_down(CMP_SES_TEST_FIXTURE *fixture)
50 OSSL_CMP_CTX_free(fixture->cmp_ctx);
51 ossl_cmp_mock_srv_free(fixture->srv_ctx);
52 sk_X509_free(fixture->caPubs);
53 OPENSSL_free(fixture);
58 CMP_SES_TEST_FIXTURE *fixture; local
62 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
64 fixture->test_case_name = test_case_name;
65 if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)
    [all...]
cmp_msg_test.c 38 static void tear_down(CMP_MSG_TEST_FIXTURE *fixture)
40 OSSL_CMP_CTX_free(fixture->cmp_ctx);
41 OSSL_CMP_MSG_free(fixture->msg);
42 OSSL_CMP_PKISI_free(fixture->si);
43 OPENSSL_free(fixture);
50 CMP_MSG_TEST_FIXTURE *fixture; local
52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
54 fixture->test_case_name = test_case_name;
56 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)
    [all...]
cmp_vfy_test.c 43 static void tear_down(CMP_VFY_TEST_FIXTURE *fixture)
45 OSSL_CMP_MSG_free(fixture->msg);
46 OSSL_CMP_CTX_free(fixture->cmp_ctx);
47 OPENSSL_free(fixture);
55 CMP_VFY_TEST_FIXTURE *fixture; local
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
61 fixture->test_case_name = test_case_name;
63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL))
64 || !OSSL_CMP_CTX_set0_trustedStore(fixture->cmp_ctx, ts
    [all...]
ct_test.c 62 CT_TEST_FIXTURE *fixture = NULL; local
64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
66 fixture->test_case_name = test_case_name;
67 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */
68 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new())
70 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1))
72 return fixture;
75 if (fixture != NULL)
76 CTLOG_STORE_free(fixture->ctlog_store)
    [all...]
cmp_hdr_test.c 24 static void tear_down(CMP_HDR_TEST_FIXTURE *fixture)
26 OSSL_CMP_PKIHEADER_free(fixture->hdr);
27 OSSL_CMP_CTX_free(fixture->cmp_ctx);
28 OPENSSL_free(fixture);
33 CMP_HDR_TEST_FIXTURE *fixture; local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
37 fixture->test_case_name = test_case_name;
38 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(NULL, NULL)))
40 if (!TEST_ptr(fixture->hdr = OSSL_CMP_PKIHEADER_new())
    [all...]
ssl_test_ctx_test.c 112 SSL_TEST_CTX_TEST_FIXTURE *fixture; local
114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
116 fixture->test_case_name = test_case_name;
117 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new(NULL))) {
118 OPENSSL_free(fixture);
121 return fixture;
124 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture)
129 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section,
130 fixture->expected_ctx->libctx)
    [all...]
cipherlist_test.c 31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture)
33 if (fixture != NULL) {
34 SSL_CTX_free(fixture->server);
35 SSL_CTX_free(fixture->client);
36 fixture->server = fixture->client = NULL;
37 OPENSSL_free(fixture);
43 CIPHERLIST_TEST_FIXTURE *fixture; local
45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
    [all...]
cmp_server_test.c 25 static void tear_down(CMP_SRV_TEST_FIXTURE *fixture)
27 OSSL_CMP_SRV_CTX_free(fixture->srv_ctx);
28 OPENSSL_free(fixture);
33 CMP_SRV_TEST_FIXTURE *fixture; local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
37 fixture->test_case_name = test_case_name;
38 if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new(libctx, NULL)))
40 return fixture;
43 tear_down(fixture);
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/test/
ct_test.c 61 CT_TEST_FIXTURE *fixture = NULL; local
63 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
65 fixture->test_case_name = test_case_name;
66 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */
67 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new())
69 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1))
71 return fixture;
74 if (fixture != NULL)
75 CTLOG_STORE_free(fixture->ctlog_store)
    [all...]
cipherlist_test.c 31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture)
33 if (fixture != NULL) {
34 SSL_CTX_free(fixture->server);
35 SSL_CTX_free(fixture->client);
36 fixture->server = fixture->client = NULL;
37 OPENSSL_free(fixture);
43 CIPHERLIST_TEST_FIXTURE *fixture; local
45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
    [all...]
ssl_test_ctx_test.c 112 SSL_TEST_CTX_TEST_FIXTURE *fixture; local
114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
116 fixture->test_case_name = test_case_name;
117 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new())) {
118 OPENSSL_free(fixture);
121 return fixture;
124 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture)
129 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section))
130 || !testctx_eq(ctx, fixture->expected_ctx)
    [all...]
  /src/external/mpl/bind/dist/bin/tests/system/statschannel/
conftest.py 17 @pytest.fixture(scope="module")

Completed in 42 milliseconds

1 2 3