Lines Matching refs:fixture
40 static void tear_down(FIXTURE *fixture) in tear_down() argument
42 if (fixture != NULL) { in tear_down()
43 OSSL_PROVIDER_unload(fixture->prov1); in tear_down()
44 OSSL_PROVIDER_unload(fixture->prov2); 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()
56 || !TEST_ptr(fixture->ctx1 = OSSL_LIB_CTX_new()) in set_up()
57 || !TEST_ptr(fixture->prov1 = OSSL_PROVIDER_load(fixture->ctx1, in set_up()
59 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new()) in set_up()
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
62 tear_down(fixture); in set_up()
65 return fixture; in set_up()
142 static int test_pass_rsa(FIXTURE *fixture) in test_pass_rsa() argument
221 if (!TEST_ptr(km1 = EVP_KEYMGMT_fetch(fixture->ctx1, "RSA", NULL)) in test_pass_rsa()
222 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL)) in test_pass_rsa()
223 || !TEST_ptr(km3 = EVP_KEYMGMT_fetch(fixture->ctx1, "RSA-PSS", NULL)) in test_pass_rsa()