diff --git a/rust/pv/src/verify/helper.rs b/rust/pv/src/verify/helper.rs index 0ccf4024..8c28b16d 100644 --- a/rust/pv/src/verify/helper.rs +++ b/rust/pv/src/verify/helper.rs @@ -302,8 +302,8 @@ pub fn x509_dist_points(cert: &X509Ref) -> Vec { /// Searches for CRL Distribution points and downloads the CRL. Stops after the first successful /// download. /// -/// Error if something bad(=unexpected) happens (not bad: CRL not available at link, unexpected -/// format) Other issues are mapped to Ok(None) +/// Error if something bad(=unexpected) happens +/// CRL not available at all URIs and unexpected format at all URIs are mapped to Ok(None) #[cfg(not(test))] pub fn download_first_crl_from_x509(cert: &X509Ref) -> Result>> { use crate::utils::read_crls; @@ -333,6 +333,7 @@ pub fn download_first_crl_from_x509(cert: &X509Ref) -> Result continue, + Ok(crl) if crl.is_empty() => continue, Ok(crl) => return Ok(Some(crl)), } }