pv: download_first_crl_from_x509: Log errors

Although most errors are ignored and the next CRL distribution point is
tried, log the errors as debug messages.

Signed-off-by: Marc Hartmayer <marc@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2026-07-03 14:36:12 +02:00
committed by Jan Höppner
parent cf45a6e108
commit 4eb18bd6b7

View File

@@ -331,7 +331,8 @@ pub fn download_first_crl_from_x509(cert: &X509Ref) -> Result<Option<Vec<openssl
handle.timeout(CRL_TIMEOUT_MAX)?;
handle.useragent("s390-tools-pv-crl")?;
if handle.perform().is_err() {
if let Err(err) = handle.perform() {
debug!("Failed to download CRL: {}", err);
continue;
}
match read_crls(&handle.get_ref().0) {