From 41fea135ad886f3fda16003c243b778a4b1f8996 Mon Sep 17 00:00:00 2001 From: Andy Caldwell Date: Mon, 13 May 2019 18:49:09 +0100 Subject: [PATCH] Allow passing by non-owned reference --- openssl/src/ssl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index c130f15e..0fc9ad15 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -877,7 +877,7 @@ impl SslContextBuilder { /// /// [`SSL_CTX_add_client_CA`]: https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_set_client_CA_list.html #[cfg(not(libressl))] - pub fn add_client_ca(&mut self, cacert: &mut X509) -> Result<(), ErrorStack> { + pub fn add_client_ca(&mut self, cacert: &mut X509Ref) -> Result<(), ErrorStack> { unsafe { cvt(ffi::SSL_CTX_add_client_CA( self.as_ptr(),