aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/mod.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-06-02 08:35:37 -0700
committerSteven Fackler <[email protected]>2016-06-02 08:35:37 -0700
commit1c47b3bb8455b8c61380cedc3fcea9a2a77c5260 (patch)
tree41cc2d7b194554747ada1459daf991e1ac68668e /openssl/src/ssl/mod.rs
parentAdd a new trait based Nid setup (diff)
parentFix a few mutable types for `self` parameters. (diff)
downloadrust-openssl-1c47b3bb8455b8c61380cedc3fcea9a2a77c5260.tar.xz
rust-openssl-1c47b3bb8455b8c61380cedc3fcea9a2a77c5260.zip
Merge pull request #404 from frewsxcv/mut2
Fix a few mutable types for `self` parameters.
Diffstat (limited to 'openssl/src/ssl/mod.rs')
-rw-r--r--openssl/src/ssl/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 5536a99e..89a7f7d4 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -521,13 +521,13 @@ impl SslContext {
}
}
- pub fn set_read_ahead(&self, m: u32) {
+ pub fn set_read_ahead(&mut self, m: u32) {
unsafe {
ffi_extras::SSL_CTX_set_read_ahead(self.ctx, m as c_long);
}
}
- pub fn set_tmp_dh(&self, dh: DH) -> Result<(), ErrorStack> {
+ pub fn set_tmp_dh(&mut self, dh: DH) -> Result<(), ErrorStack> {
wrap_ssl_result(unsafe { ffi_extras::SSL_CTX_set_tmp_dh(self.ctx, dh.raw()) as i32 })
}
@@ -647,7 +647,7 @@ impl SslContext {
SslContextOptions::from_bits(ret).unwrap()
}
- pub fn options(&mut self) -> SslContextOptions {
+ pub fn options(&self) -> SslContextOptions {
let ret = unsafe { ffi_extras::SSL_CTX_get_options(self.ctx) };
SslContextOptions::from_bits(ret).unwrap()
}