mirror of
https://github.com/openharmony/third_party_rust_openssl-probe.git
synced 2026-07-01 10:18:23 -04:00
Add dir & filename definitions used by Haiku.
This commit is contained in:
@@ -25,6 +25,7 @@ pub fn find_certs_dirs() -> Vec<PathBuf> {
|
||||
"/etc/pki/tls",
|
||||
"/etc/ssl",
|
||||
"/data/data/com.termux/files/usr/etc/tls",
|
||||
"/boot/system/data/ssl",
|
||||
].iter().map(|s| PathBuf::from(*s)).filter(|p| {
|
||||
fs::metadata(p).is_ok()
|
||||
}).collect()
|
||||
@@ -64,6 +65,7 @@ pub fn probe() -> ProbeResult {
|
||||
"certs/ca-certificates.crt",
|
||||
"certs/ca-root-nss.crt",
|
||||
"certs/ca-bundle.crt",
|
||||
"CARootCertificates.pem",
|
||||
].iter() {
|
||||
try(&mut result.cert_file, certs_dir.join(cert));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user