provider: add option to load a provider without disabling the fallbacks.
authorPauli <ppzgs1@gmail.com>
Wed, 17 Feb 2021 23:16:26 +0000 (09:16 +1000)
committerPauli <ppzgs1@gmail.com>
Tue, 23 Feb 2021 13:24:41 +0000 (23:24 +1000)
commit299f5ff3b5f2a5a9b5666e36a6a01fc430de9198
treea522f985b02749c53b628f193c767de3c9fb93f6
parent332a245c04dff95f81cfa1f77e0f8a935794f5ee
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)
crypto/provider.c
crypto/provider_conf.c
crypto/provider_core.c
doc/internal/man3/ossl_provider_new.pod
doc/man3/OSSL_PROVIDER.pod
include/internal/provider.h
include/openssl/provider.h
test/provider_internal_test.c