blob: bb4ec7c36268ff2bea7ab413c3532b00de235e1f [file] [log] [blame]
use crate::load_pem_certs;
use crate::Certificate;
use std::io::Error;
pub fn load_native_certs() -> Result<Vec<Certificate>, Error> {
let likely_locations = openssl_probe::probe();
match likely_locations.cert_file {
Some(cert_file) => load_pem_certs(&cert_file),
None => Ok(Vec::new()),
}
}