summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-18 09:16:26 +1000
committerPauli <ppzgs1@gmail.com>2021-02-23 23:24:41 +1000
commit299f5ff3b5f2a5a9b5666e36a6a01fc430de9198 (patch)
treea522f985b02749c53b628f193c767de3c9fb93f6 /test
parent332a245c04dff95f81cfa1f77e0f8a935794f5ee (diff)
provider: add option to load a provider without disabling the fallbacks.
Add an argument to PROVIDER_try_load() that permits a provider to be loaded without changing the fallback status. This is useful when an additional provider needs to be loaded without perturbing any other setup. E.g. adding mock providers as part of unit testing. Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13652)
Diffstat (limited to 'test')
-rw-r--r--test/provider_internal_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/provider_internal_test.c b/test/provider_internal_test.c
index 4b2b6d5349..fc04d2d925 100644
--- a/test/provider_internal_test.c
+++ b/test/provider_internal_test.c
@@ -26,7 +26,7 @@ static int test_provider(OSSL_PROVIDER *prov, const char *expected_greeting)
int ret = 0;
ret =
- TEST_true(ossl_provider_activate(prov))
+ TEST_true(ossl_provider_activate(prov, 0))
&& TEST_true(ossl_provider_get_params(prov, greeting_request))
&& TEST_ptr(greeting = greeting_request[0].data)
&& TEST_size_t_gt(greeting_request[0].data_size, 0)