diff options
| author | Steven Fackler <[email protected]> | 2016-10-21 19:58:06 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-21 19:58:06 -0700 |
| commit | 02b4385c5d18534d7b02a3ebc3323b662251c36e (patch) | |
| tree | 3947f443d58c2175f35a6e9cd6159365bc707bd9 /openssl/src/ssl/mod.rs | |
| parent | Borrowed servername (diff) | |
| download | rust-openssl-02b4385c5d18534d7b02a3ebc3323b662251c36e.tar.xz rust-openssl-02b4385c5d18534d7b02a3ebc3323b662251c36e.zip | |
Convert X509VerifyParamRef
Diffstat (limited to 'openssl/src/ssl/mod.rs')
| -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 d03b495f..26cafa9a 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -1010,9 +1010,9 @@ impl SslRef { /// /// Requires the `v102` or `v110` features and OpenSSL 1.0.2 or 1.1.0. #[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))] - pub fn param<'a>(&'a mut self) -> X509VerifyParamRef<'a> { + pub fn param_mut(&mut self) -> &mut X509VerifyParamRef { unsafe { - X509VerifyParamRef::from_ptr(ffi::SSL_get0_param(self.as_ptr())) + X509VerifyParamRef::from_ptr_mut(ffi::SSL_get0_param(self.as_ptr())) } } |