diff --git a/boring/src/x509/mod.rs b/boring/src/x509/mod.rs index 8401813be..3134f703f 100644 --- a/boring/src/x509/mod.rs +++ b/boring/src/x509/mod.rs @@ -247,7 +247,7 @@ impl X509StoreContextRef { /// Sets the X509 verification configuration. #[corresponds(X509_STORE_CTX_set0_param)] pub fn set_verify_param(&mut self, param: X509VerifyParam) { - unsafe { ffi::X509_STORE_CTX_set0_param(self.as_ptr(), param.as_ptr()) } + unsafe { ffi::X509_STORE_CTX_set0_param(self.as_ptr(), param.into_ptr()) } } /// Verifies the stored certificate.