mirror of
https://github.com/openharmony/third_party_rust_openssl-probe.git
synced 2026-07-01 10:18:23 -04:00
@@ -8,3 +8,4 @@ homepage = "https://github.com/alexcrichton/openssl-probe"
|
||||
description = """
|
||||
Tool for helping to find SSL certificate locations on the system for OpenSSL
|
||||
"""
|
||||
readme = "README.md"
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# openssl-probe
|
||||
|
||||
Tool for helping to find SSL certificate locations on the system for OpenSSL
|
||||
|
||||
[](https://crates.io/crates/openssl-probe)
|
||||
[](https://docs.rs/openssl-probe/)
|
||||
|
||||
## Usage
|
||||
|
||||
First, add this to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
openssl-probe = "0.1.1"
|
||||
```
|
||||
|
||||
Then add this to your crate:
|
||||
|
||||
```rust
|
||||
extern crate openssl_probe;
|
||||
|
||||
fn main() {
|
||||
openssl_probe::init_ssl_cert_env_vars();
|
||||
//... 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](./LICENSE-APACHE), and [LICENSE-MIT](LICENSE-MIT) for details.
|
||||
Reference in New Issue
Block a user