Lines Matching refs:prov

79 static int load_providers(OSSL_LIB_CTX **libctx, OSSL_PROVIDER *prov[])  in load_providers()  argument
96 prov[i] = OSSL_PROVIDER_load(ctx, provname); in load_providers()
97 if (!TEST_ptr(prov[i])) in load_providers()
109 static void unload_providers(OSSL_LIB_CTX **libctx, OSSL_PROVIDER *prov[]) in unload_providers() argument
111 if (prov[0] != NULL) in unload_providers()
112 OSSL_PROVIDER_unload(prov[0]); in unload_providers()
113 if (prov[1] != NULL) in unload_providers()
114 OSSL_PROVIDER_unload(prov[1]); in unload_providers()
180 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_implicit_EVP_MD_fetch() local
183 ret = (use_default_ctx == 0 || load_providers(&ctx, prov)) in test_implicit_EVP_MD_fetch()
186 unload_providers(&ctx, prov); in test_implicit_EVP_MD_fetch()
194 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_explicit_EVP_MD_fetch() local
197 if (use_default_ctx == 0 && !load_providers(&ctx, prov)) in test_explicit_EVP_MD_fetch()
218 unload_providers(&ctx, prov); in test_explicit_EVP_MD_fetch()
298 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_implicit_EVP_CIPHER_fetch() local
301 ret = (use_default_ctx == 0 || load_providers(&ctx, prov)) in test_implicit_EVP_CIPHER_fetch()
304 unload_providers(&ctx, prov); in test_implicit_EVP_CIPHER_fetch()
312 OSSL_PROVIDER *prov[2] = {NULL, NULL}; in test_explicit_EVP_CIPHER_fetch() local
315 if (use_default_ctx == 0 && !load_providers(&ctx, prov)) in test_explicit_EVP_CIPHER_fetch()
334 unload_providers(&ctx, prov); in test_explicit_EVP_CIPHER_fetch()