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

26 lines
664 B
Diff
Raw Normal View History

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