Try to load a provider by name, optionally keeping fallback providers.
Declared in <openssl/provider.h>
OSSL_PROVIDER*
OSSL_PROVIDER_try_load(
OSSL_LIB_CTX* libctx,
char const* name,
int retain_fallbacks);
Provider handle on success, or NULL on failure; unload with OSSL_PROVIDER_unload().
| Name | Description |
|---|---|
| libctx | Library context that will own the provider, or NULL for the default. |
| name | Provider name (for example "default" or "legacy"). |
| retain_fallbacks | Non-zero to leave fallback providers active after a successful load. |