Lines Matching refs:fixture
36 static void tear_down(FIXTURE *fixture) in tear_down() argument
38 if (fixture != NULL) { in tear_down()
39 OSSL_PROVIDER_unload(fixture->prov1); in tear_down()
40 OSSL_PROVIDER_unload(fixture->prov2); in tear_down()
41 OSSL_LIB_CTX_free(fixture->ctx1); in tear_down()
42 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down()
43 OPENSSL_free(fixture); in tear_down()
49 FIXTURE *fixture; in set_up() local
51 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))) in set_up()
52 || !TEST_ptr(fixture->ctx1 = OSSL_LIB_CTX_new()) in set_up()
53 || !TEST_ptr(fixture->prov1 = OSSL_PROVIDER_load(fixture->ctx1, in set_up()
55 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new()) in set_up()
56 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
58 tear_down(fixture); in set_up()
61 return fixture; in set_up()
138 static int test_pass_rsa(FIXTURE *fixture) in test_pass_rsa() argument
217 if (!TEST_ptr(km1 = EVP_KEYMGMT_fetch(fixture->ctx1, "RSA", NULL)) in test_pass_rsa()
218 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL)) in test_pass_rsa()
219 || !TEST_ptr(km3 = EVP_KEYMGMT_fetch(fixture->ctx1, "RSA-PSS", NULL)) in test_pass_rsa()