pub struct Provider(_);
Implementations§
source§impl Provider
impl Provider
sourcepub fn load(ctx: Option<&LibCtxRef>, name: &str) -> Result<Self, ErrorStack>
pub fn load(ctx: Option<&LibCtxRef>, name: &str) -> Result<Self, ErrorStack>
Loads a new provider into the specified library context, disabling the fallback providers.
If ctx
is None
, the provider will be loaded in to the default library context.
This corresponds to OSSL_provider_load
.
sourcepub fn try_load(
ctx: Option<&LibCtxRef>,
name: &str,
retain_fallbacks: bool
) -> Result<Self, ErrorStack>
pub fn try_load( ctx: Option<&LibCtxRef>, name: &str, retain_fallbacks: bool ) -> Result<Self, ErrorStack>
Loads a new provider into the specified library context, disabling the fallback providers if retain_fallbacks
is false
and the load succeeds.
If ctx
is None
, the provider will be loaded into the default library context.
This corresponds to OSSL_provider_try_load
.
sourcepub fn set_default_search_path(
ctx: Option<&LibCtxRef>,
path: &str
) -> Result<(), ErrorStack>
pub fn set_default_search_path( ctx: Option<&LibCtxRef>, path: &str ) -> Result<(), ErrorStack>
Specifies the default search path that is to be used for looking for providers in the specified library context. If left unspecified, an environment variable and a fall back default value will be used instead
If ctx
is None
, the provider will be loaded into the default library context.
This corresponds to OSSL_PROVIDER_set_default_search_path
.