tree: 12884ca05645c156058e99e4b226e1eaf819688b [path history] [tgz]
  1. .github/
  2. examples/
  3. src/
  4. .cargo-checksum.json
  5. .cargo_vcs_info.json
  6. BUILD.bazel
  7. Cargo.lock
  8. Cargo.toml
  9. Cargo.toml.orig
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. OWNERS
  13. README.md
third_party/rust_crates/vendor/openssl-probe-0.1.6/README.md

openssl-probe

Tool for helping to find SSL certificate locations on the system for OpenSSL

Crates.io docs.rs

Usage

First, add this to your Cargo.toml:

[dependencies]
openssl-probe = "0.1.6"

Then add this to your crate:

fn main() {
    let result = openssl_probe::probe();
    if let Some(dir) = &result.cert_dir {
        //... your code
    }
    if let Some(file) = &result.cert_file {
        //... your code
    }
}

License

openssl-probe is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.