Allow passing by non-owned reference
This commit is contained in:
parent
628c3b338a
commit
41fea135ad
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue