aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/mod.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-30 21:39:26 -0700
committerSteven Fackler <[email protected]>2016-10-30 21:39:26 -0700
commite0211dac30756f19f515962afb3f50a6ca489a69 (patch)
tree7f5e35b3b93affeb88c07a16e731201f206b781c /openssl/src/ssl/mod.rs
parentImpl Sync and Send for SslContextBuilder (diff)
downloadrust-openssl-e0211dac30756f19f515962afb3f50a6ca489a69.tar.xz
rust-openssl-e0211dac30756f19f515962afb3f50a6ca489a69.zip
Rename set_CA_file
Diffstat (limited to 'openssl/src/ssl/mod.rs')
-rw-r--r--openssl/src/ssl/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 954bb5e7..2aea5af4 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -519,9 +519,8 @@ impl SslContextBuilder {
unsafe { cvt(ffi::SSL_CTX_set_default_verify_paths(self.as_ptr())).map(|_| ()) }
}
- #[allow(non_snake_case)]
/// Specifies the file that contains trusted CA certificates.
- pub fn set_CA_file<P: AsRef<Path>>(&mut self, file: P) -> Result<(), ErrorStack> {
+ pub fn set_ca_file<P: AsRef<Path>>(&mut self, file: P) -> Result<(), ErrorStack> {
let file = CString::new(file.as_ref().as_os_str().to_str().unwrap()).unwrap();
unsafe {
cvt(ffi::SSL_CTX_load_verify_locations(self.as_ptr(),