diff options
| author | Steven Fackler <[email protected]> | 2015-02-12 13:20:32 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-02-12 13:20:32 -0800 |
| commit | 12d30628fe49cc96abe223804b46fb3ea0f6b39a (patch) | |
| tree | 420ea58299eff67eb590f35368dd667629733776 /openssl-sys/src/probe.rs | |
| parent | Move BSD special case after pkg-config lookups (diff) | |
| parent | rustup to current master (diff) | |
| download | rust-openssl-12d30628fe49cc96abe223804b46fb3ea0f6b39a.tar.xz rust-openssl-12d30628fe49cc96abe223804b46fb3ea0f6b39a.zip | |
Merge pull request #160 from globin/fix/rustup
rustup to current master
Diffstat (limited to 'openssl-sys/src/probe.rs')
| -rw-r--r-- | openssl-sys/src/probe.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl-sys/src/probe.rs b/openssl-sys/src/probe.rs index 7896b3e9..dcbefb6d 100644 --- a/openssl-sys/src/probe.rs +++ b/openssl-sys/src/probe.rs @@ -42,16 +42,16 @@ pub fn init_ssl_cert_env_vars() { fn put(var: &str, path: Path) { // Don't stomp over what anyone else has set match env::var(var) { - Some(..) => {} - None => env::set_var(var, &path), + Ok(..) => {} + Err(..) => env::set_var(var, &path), } } } pub fn probe() -> ProbeResult { let mut result = ProbeResult { - cert_file: env::var_string("SSL_CERT_FILE").ok().map(Path::new), - cert_dir: env::var_string("SSL_CERT_DIR").ok().map(Path::new), + cert_file: env::var("SSL_CERT_FILE").ok().map(Path::new), + cert_dir: env::var("SSL_CERT_DIR").ok().map(Path::new), }; for certs_dir in find_certs_dirs().iter() { // cert.pem looks to be an openssl 1.0.1 thing, while |