rustls_platform_verifier::android

Function init_external

Source
pub fn init_external(runtime: &'static dyn Runtime)
Available on Android only.
Expand description

Initializes and stores the required context for the Android platform.

This method utilizes an existing Android runtime envrionment and set anything else up on its own. This is useful if your application already interacts with the runtime and has pre-existing handles.

This function will never panic, and is therefore safe to use at FFI boundaries.

Initialization must be done before any verification is attempted.