Merge pull request #6 from jethrogb/rhel

Add path probing for modern RHEL-based systems
This commit is contained in:
Alex Crichton
2017-12-12 23:28:22 -06:00
committed by GitHub
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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:
+2
View File
@@ -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));
}