diff options
| author | Steven Fackler <[email protected]> | 2016-07-31 15:35:45 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-07-31 15:35:45 -0700 |
| commit | 5cb04db787baefc7f6368bd40cc1d4378760cf68 (patch) | |
| tree | 611cc156b38e1a9d37347e036c73ada474223ae5 /openssl | |
| parent | Merge remote-tracking branch 'origin/master' into breaks (diff) | |
| download | rust-openssl-5cb04db787baefc7f6368bd40cc1d4378760cf68.tar.xz rust-openssl-5cb04db787baefc7f6368bd40cc1d4378760cf68.zip | |
Fix build with dtls
Diffstat (limited to 'openssl')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index b18df7b3..aba809fd 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -466,7 +466,7 @@ impl SslContext { let ctx = try_ssl_null!(unsafe { ffi::SSL_CTX_new(method.to_raw()) }); - let ctx = SslContext { ctx: ctx }; + let mut ctx = SslContext { ctx: ctx }; match method { #[cfg(feature = "dtlsv1")] @@ -529,7 +529,7 @@ impl SslContext { } } - fn set_mode(&self, mode: c_long) -> Result<(), ErrorStack> { + fn set_mode(&mut self, mode: c_long) -> Result<(), ErrorStack> { wrap_ssl_result(unsafe { ffi_extras::SSL_CTX_set_mode(self.ctx, mode) as c_int }) } |