Edit documentation for `openssl-probe`

@dkastner tested this out this proposed code snippet from @cssivision. Thank you!
This commit is contained in:
Eric Kidd 2017-09-15 11:55:08 -04:00 committed by GitHub
parent d9d0f9fba1
commit 33fc8d98f3
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ libraries:
- The standard `musl-libc` libraries.
- OpenSSL, which is needed by many Rust applications.
statically linked OpenSSL to the binary and if you need some for of CA certificate store to validate certificates(may be a https request), you need to add some code in your application, for [detail](https://github.com/emk/rust-musl-builder/issues/21).
## Making OpenSSL work
If your application uses OpenSSL, you will also need to take a few extra steps to make sure that it can find OpenSSL's list of trusted certificates, which is stored in different locations on different Linux distributions. You can do this using [`openssl-probe`](https://crates.io/crates/openssl-probe) as follows:
```rust
extern crate openssl_probe;