Skip to main content

install_default_provider

Function install_default_provider 

Source
pub fn install_default_provider() -> SshCliResult<()>
Available on crate feature tls only.
Expand description

Installs aws_lc_rs::default_provider once for the process.

Call from binary main before any TLS dial and preferably before the Tokio runtime is built (rules: install → log → config → runtime → sockets).

Idempotent: a second call succeeds if the default is already installed (including by another crate in the same process).

§Errors

Returns [SshCliError::Tls] when install fails for a reason other than “already installed”.