1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Silence "packet with obsolete versoin" warnings.

* g10/parse-packet.c (parse_key): Print warning only in very verbose
mode.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2014-10-19 14:17:23 +02:00
parent 1b8decc476
commit 472a4a0d82

View File

@ -1949,7 +1949,8 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
} }
else if (version == 2 || version == 3) else if (version == 2 || version == 3)
{ {
log_info ("packet(%d) with obsolete version %d\n", pkttype, version); if (opt.verbose > 1)
log_info ("packet(%d) with obsolete version %d\n", pkttype, version);
if (list_mode) if (list_mode)
es_fprintf (listfp, ":key packet: [obsolete version %d]\n", version); es_fprintf (listfp, ":key packet: [obsolete version %d]\n", version);
err = gpg_error (GPG_ERR_INV_PACKET); err = gpg_error (GPG_ERR_INV_PACKET);