michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame 0001-Give-error-message-for-failed-PGP-key-import.patch

Florian Festi 5a103a
From b105f03f956e6e1523df2ac3fffc86b924fd6e1b Mon Sep 17 00:00:00 2001
Florian Festi 5a103a
From: Florian Festi <ffesti@redhat.com>
Florian Festi 5a103a
Date: Thu, 16 Jun 2022 14:29:01 +0200
Florian Festi 5a103a
Subject: [PATCH] Give error message for failed PGP key import
Florian Festi 5a103a
Florian Festi 5a103a
due to missing SHA1 support
Florian Festi 5a103a
---
Florian Festi 5a103a
 rpmio/rpmpgp.c | 1 +
Florian Festi 5a103a
 1 file changed, 1 insertion(+)
Florian Festi 5a103a
Florian Festi 5a103a
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
Florian Festi 5a103a
index d0688ebe9..71f8ed192 100644
Florian Festi 5a103a
--- a/rpmio/rpmpgp.c
Florian Festi 5a103a
+++ b/rpmio/rpmpgp.c
Florian Festi 5a103a
@@ -860,6 +860,7 @@ int pgpPubkeyFingerprint(const uint8_t *h, size_t hlen,
Florian Festi 5a103a
 		*fplen = dlen;
Florian Festi 5a103a
 	    } else {
Florian Festi 5a103a
 		free(d);
Florian Festi 5a103a
+		rpmlog(RPMLOG_ERR, _("Failed calculating fingerprint of public key. SHA1 not supported.\n"));
Florian Festi 5a103a
 	    }
Florian Festi 5a103a
 	}
Florian Festi 5a103a
 
Florian Festi 5a103a
-- 
Florian Festi 5a103a
2.36.1
Florian Festi 5a103a