diff options
| author | Steven Fackler <[email protected]> | 2016-08-10 21:28:17 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-10 21:28:17 -0700 |
| commit | 59fe901357b6ceb8e60e49c97467829abbb64fe1 (patch) | |
| tree | 38a96f3bbbc34b0eb818ce52064431fe78801078 /openssl/src/ssl | |
| parent | Tweaks (diff) | |
| download | rust-openssl-59fe901357b6ceb8e60e49c97467829abbb64fe1.tar.xz rust-openssl-59fe901357b6ceb8e60e49c97467829abbb64fe1.zip | |
Method renames
Diffstat (limited to 'openssl/src/ssl')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 5c2cdd64..78a5b2ce 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -529,14 +529,14 @@ impl<'a> SslContextRef<'a> { /// Specifies the certificate pub fn set_certificate(&mut self, cert: &X509Ref) -> Result<(), ErrorStack> { - wrap_ssl_result(unsafe { ffi::SSL_CTX_use_certificate(self.as_ptr(), cert.handle()) }) + wrap_ssl_result(unsafe { ffi::SSL_CTX_use_certificate(self.as_ptr(), cert.as_ptr()) }) } /// Adds a certificate to the certificate chain presented together with the /// certificate specified using set_certificate() pub fn add_extra_chain_cert(&mut self, cert: &X509Ref) -> Result<(), ErrorStack> { wrap_ssl_result(unsafe { - ffi::SSL_CTX_add_extra_chain_cert(self.as_ptr(), cert.handle()) as c_int + ffi::SSL_CTX_add_extra_chain_cert(self.as_ptr(), cert.as_ptr()) as c_int }) } @@ -555,7 +555,7 @@ impl<'a> SslContextRef<'a> { /// Specifies the private key pub fn set_private_key(&mut self, key: &PKey) -> Result<(), ErrorStack> { - wrap_ssl_result(unsafe { ffi::SSL_CTX_use_PrivateKey(self.as_ptr(), key.handle()) }) + wrap_ssl_result(unsafe { ffi::SSL_CTX_use_PrivateKey(self.as_ptr(), key.as_ptr()) }) } /// Check consistency of private key and certificate |