Files
IronStorage/crates/android/src/tls.rs
T
hugo 36e5f55283
Android ARM verification / rust (push) Failing after 46m9s
Android ARM verification / android (push) Failing after 8s
Dependency security audit / rustsec (push) Successful in 21s
Implement Rust-owned Android local and HTTPS onboarding (#95)
2026-10-09 11:31:50 +02:00

18 lines
655 B
Rust

//! OS certificate-verifier initialization only; Git/TLS policy stays in storage.
//! The JNI macro supplies a scoped valid environment and catches boundary panics;
//! rustls retains global Context/class-loader references before this scope ends.
use jni::{Env, objects::JObject};
const _: jni::NativeMethod = jni::native_method! {
java_type = "de.rfc1437.ironstorage.bridge.NativeTls",
extern fn initialize(context: JObject),
};
fn initialize<'local>(
env: &mut Env<'local>,
_this: JObject<'local>,
context: JObject<'local>,
) -> Result<(), jni::errors::Error> {
rustls_platform_verifier::android::init_with_env(env, context)
}