Tell dependencies if vendored OpenSSL was used

The system OpenSSL knows where its certificates are. If
DEP_OPENSSL_VENDORED is not set:
- openssl-probe doesn't need to set any environment variables and can
get the paths from OpenSSL itself.
- Libraries that normally use `openssl_probe::probe()` and
`SSL_CTX_load_verify_locations` can instead use
`SSL_CTX_set_default_verify_paths`.
This commit is contained in:
Hristo Venev 2019-04-03 17:51:37 +03:00
parent ae72202ad9
commit 6b0583b7c4
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ use std::path::PathBuf;
pub fn get_openssl(_target: &str) -> (PathBuf, PathBuf) { pub fn get_openssl(_target: &str) -> (PathBuf, PathBuf) {
let artifacts = openssl_src::Build::new().build(); let artifacts = openssl_src::Build::new().build();
println!("cargo:vendored=1");
( (
artifacts.lib_dir().to_path_buf(), artifacts.lib_dir().to_path_buf(),
artifacts.include_dir().to_path_buf(), artifacts.include_dir().to_path_buf(),