aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-04-16 20:49:46 -0700
committerSteven Fackler <[email protected]>2016-04-16 20:49:46 -0700
commitc60e831cc4489ed972603e6e8c4c957069ff8596 (patch)
treec076d3c9a5c98079ed1e45059fcb63d4ae563efa /openssl/src
parentAdd SslContext::set_default_verify_paths (diff)
downloadrust-openssl-c60e831cc4489ed972603e6e8c4c957069ff8596.tar.xz
rust-openssl-c60e831cc4489ed972603e6e8c4c957069ff8596.zip
Add docs for set_default_verify_paths
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 4f1504aa..4b3a4385 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -612,6 +612,11 @@ impl SslContext {
wrap_ssl_result(unsafe { ffi_extras::SSL_CTX_set_tmp_dh(self.ctx, dh.raw()) as i32 })
}
+ /// Use the default locations of trusted certificates for verification.
+ ///
+ /// These locations are read from the `SSL_CERT_FILE` and `SSL_CERT_DIR`
+ /// environment variables if present, or defaults specified at OpenSSL
+ /// build time otherwise.
pub fn set_default_verify_paths(&mut self) -> Result<(), SslError> {
wrap_ssl_result(unsafe { ffi::SSL_CTX_set_default_verify_paths(self.ctx) })
}