Const-correctness

This commit is contained in:
Andy Caldwell 2019-05-13 19:11:15 +01:00
parent 41fea135ad
commit 2e37753790
No known key found for this signature in database
GPG Key ID: D4204541AC1D228D
1 changed files with 1 additions and 1 deletions

View File

@ -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 X509Ref) -> Result<(), ErrorStack> {
pub fn add_client_ca(&mut self, cacert: &X509Ref) -> Result<(), ErrorStack> {
unsafe {
cvt(ffi::SSL_CTX_add_client_CA(
self.as_ptr(),