Add set_verify_param

This commit is contained in:
James Larisch 2025-05-29 20:06:30 -04:00 committed by Bas Westerbaan
parent 5e8aaf63f0
commit e99d162891
1 changed files with 6 additions and 0 deletions

View File

@ -148,6 +148,12 @@ impl X509StoreContextRef {
unsafe { X509VerifyParamRef::from_ptr_mut(ffi::X509_STORE_CTX_get0_param(self.as_ptr())) }
}
/// Sets the X509 verifification configuration on the X509_STORE_CTX.
#[corresponds(X509_STORE_CTX_set0_param)]
pub fn set_verify_param(&mut self, param: &mut X509VerifyParamRef) {
unsafe { ffi::X509_STORE_CTX_set0_param(self.as_ptr(), param.as_ptr()) }
}
/// Verifies the stored certificate.
///
/// Returns `true` if verification succeeds. The `error` method will return the specific