aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorManuel Schölling <[email protected]>2015-04-03 14:42:35 +0200
committerManuel Schölling <[email protected]>2015-04-03 14:42:35 +0200
commit57f046e8ea07131e479d706279549066ed562c07 (patch)
tree619d319f441b897add28795386a58a3f13ba2f9a /openssl/src
parentReturn Result<(),SslError> instead of Option<SslError> (diff)
downloadrust-openssl-57f046e8ea07131e479d706279549066ed562c07.tar.xz
rust-openssl-57f046e8ea07131e479d706279549066ed562c07.zip
Use raw pointers instead of ptr::Unique
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 04657907..4c0b13f1 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -350,7 +350,7 @@ impl SslContext {
mem::transmute(verify));
let f: extern fn(c_int, *mut ffi::X509_STORE_CTX) -> c_int =
raw_verify;
- ffi::SSL_CTX_set_verify(*self.ctx, mode.bits as c_int, Some(f));
+ ffi::SSL_CTX_set_verify(self.ctx, mode.bits as c_int, Some(f));
}
}
@@ -370,7 +370,7 @@ impl SslContext {
mem::transmute(data));
let f: extern fn(c_int, *mut ffi::X509_STORE_CTX) -> c_int =
raw_verify_with_data::<T>;
- ffi::SSL_CTX_set_verify(*self.ctx, mode.bits as c_int, Some(f));
+ ffi::SSL_CTX_set_verify(self.ctx, mode.bits as c_int, Some(f));
}
}
@@ -405,7 +405,7 @@ impl SslContext {
pub fn set_certificate(&mut self, cert: &X509) -> Result<(),SslError> {
wrap_ssl_result(
unsafe {
- ffi::SSL_CTX_use_certificate(*self.ctx, cert.get_handle())
+ ffi::SSL_CTX_use_certificate(self.ctx, cert.get_handle())
})
}
@@ -414,7 +414,7 @@ impl SslContext {
pub fn add_extra_chain_cert(&mut self, cert: &X509) -> Result<(),SslError> {
wrap_ssl_result(
unsafe {
- ffi::SSL_CTX_add_extra_chain_cert(*self.ctx, cert.get_handle()) as c_int
+ ffi::SSL_CTX_add_extra_chain_cert(self.ctx, cert.get_handle()) as c_int
})
}
@@ -432,7 +432,7 @@ impl SslContext {
pub fn set_private_key(&mut self, key: &PKey) -> Result<(),SslError> {
wrap_ssl_result(
unsafe {
- ffi::SSL_CTX_use_PrivateKey(*self.ctx, key.get_handle())
+ ffi::SSL_CTX_use_PrivateKey(self.ctx, key.get_handle())
})
}
@@ -440,7 +440,7 @@ impl SslContext {
pub fn check_private_key(&mut self) -> Result<(),SslError> {
wrap_ssl_result(
unsafe {
- ffi::SSL_CTX_check_private_key(*self.ctx)
+ ffi::SSL_CTX_check_private_key(self.ctx)
})
}