summaryrefslogtreecommitdiffstats
path: root/g10/sig-check.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-09-28 11:14:26 +0200
committerWerner Koch <wk@gnupg.org>2022-09-28 11:14:26 +0200
commit1b0c17dfab5093dea378e4b2d4649cec5be0c84d (patch)
treee24be90d3e4bbc1218b84291d8810a898def064f /g10/sig-check.c
parentdirmngr: New server flag "areconly" (A-record-only) (diff)
downloadgnupg2-1b0c17dfab5093dea378e4b2d4649cec5be0c84d.tar.xz
gnupg2-1b0c17dfab5093dea378e4b2d4649cec5be0c84d.zip
gpg: Silence some diagnostics.
* g10/parse-packet.c (enum_sig_subpkt): Show "buffer shorter than subpacket" only in debug mode. (parse_signature): Show "signature packet without timestamp / keyid" only in souble verbose mode. * g10/sig-check.c (check_signature_metadata_validity): Use ISO timestamp in UTC for the signature expired note. -- I have seen to many of these diagnostics and in particular the first one seems to be a connected to the others. Thus it does not make sense to show them in standard verbose mode. The ISO timestamp is much easier to read than than the localized timestamp and switching from localtime to UTC should not harm.
Diffstat (limited to 'g10/sig-check.c')
-rw-r--r--g10/sig-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c
index eb6c9669d..7c48c0601 100644
--- a/g10/sig-check.c
+++ b/g10/sig-check.c
@@ -426,7 +426,7 @@ check_signature_metadata_validity (PKT_public_key *pk, PKT_signature *sig,
char buf[11];
if (opt.verbose)
log_info (_("Note: signature key %s expired %s\n"),
- keystr_from_pk(pk), asctimestamp( pk->expiredate ) );
+ keystr_from_pk(pk), isotimestamp( pk->expiredate ) );
snprintf (buf, sizeof buf, "%lu",(ulong)pk->expiredate);
write_status_text (STATUS_KEYEXPIRED, buf);
if (r_expired)