]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Log more information about signatures
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jul 2021 11:12:50 +0000 (11:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jul 2021 11:12:50 +0000 (11:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index d1bfb0d060218b9c920df4e6cda032809bd957de..9f7e370853e7f82a898ba7d29f21c53e43dfc918 100644 (file)
@@ -1211,6 +1211,14 @@ static int pakfire_archive_verify_signature(PakfireArchive archive, struct archi
 
        // Walk through all signatures
        for (gpgme_signature_t sig = result->signatures; sig; sig = sig->next) {
+               // Log some information about this signature
+               DEBUG(archive->pakfire, "Found signature %s\n", sig->fpr);
+               DEBUG(archive->pakfire, "  Status    : %s\n", gpgme_strerror(sig->status));
+               DEBUG(archive->pakfire, "  Timestamp : %lu\n", sig->timestamp);
+               if (sig->exp_timestamp)
+                       DEBUG(archive->pakfire, "  Expires   : %lu\n", sig->exp_timestamp);
+               DEBUG(archive->pakfire, "  Validity  : %s\n", gpgme_strerror(sig->validity_reason));
+
                switch (gpg_err_code(sig->status)) {
                        // All good
                        case GPG_ERR_NO_ERROR: