Fix build with dtls

This commit is contained in:
Steven Fackler 2016-07-31 15:35:45 -07:00
parent f0ffa246b8
commit 5cb04db787
1 changed files with 2 additions and 2 deletions

View File

@ -466,7 +466,7 @@ impl SslContext {
let ctx = try_ssl_null!(unsafe { ffi::SSL_CTX_new(method.to_raw()) }); 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 { match method {
#[cfg(feature = "dtlsv1")] #[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 }) wrap_ssl_result(unsafe { ffi_extras::SSL_CTX_set_mode(self.ctx, mode) as c_int })
} }