mirror of
https://github.com/openharmony/third_party_rust_openssl-probe.git
synced 2026-07-01 10:18:23 -04:00
Merge pull request #6 from jethrogb/rhel
Add path probing for modern RHEL-based systems
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "openssl-probe"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
repository = "https://github.com/alexcrichton/openssl-probe"
|
||||
|
||||
@@ -11,7 +11,7 @@ First, add this to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
openssl-probe = "0.1.1"
|
||||
openssl-probe = "0.1.2"
|
||||
```
|
||||
|
||||
Then add this to your crate:
|
||||
|
||||
@@ -22,6 +22,7 @@ pub fn find_certs_dirs() -> Vec<PathBuf> {
|
||||
"/usr/lib/ssl",
|
||||
"/usr/ssl",
|
||||
"/etc/openssl",
|
||||
"/etc/pki/ca-trust/extracted/pem",
|
||||
"/etc/pki/tls",
|
||||
"/etc/ssl",
|
||||
"/data/data/com.termux/files/usr/etc/tls",
|
||||
@@ -66,6 +67,7 @@ pub fn probe() -> ProbeResult {
|
||||
"certs/ca-root-nss.crt",
|
||||
"certs/ca-bundle.crt",
|
||||
"CARootCertificates.pem",
|
||||
"tls-ca-bundle.pem",
|
||||
].iter() {
|
||||
try(&mut result.cert_file, certs_dir.join(cert));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user