mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Silence some warning messages during -Kv.
* g10/options.h (glo_ctrl): Add flag silence_parse_warnings.
* g10/keylist.c (list_all): Set that during secret key listsings.
* g10/parse-packet.c (unknown_pubkey_warning): If new flag is set do
not print info message normally emitted inh verbose mode.
(can_handle_critical_notation, enum_sig_subpkt): Ditto.
(parse_signature, parse_key, parse_attribute_subpkts): Ditto.
--
Those messages are annoying because they might be emitted due to
parsing public keys which are latter not shows because the secret part
is missing. No functional regressions are expected because --verbose
should not change anything.
Note that this suppression is only done if no arguments are given to
the command; that is if a listing of the entire keyring is requested.
Thus to see the earnings anyway, a listing of a single or group of
keys can be requested.
GnuPG-bug-id: 4627
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit d7aca1bef6
)
This commit is contained in:
parent
215858aba3
commit
589f118713
3 changed files with 19 additions and 10 deletions
|
@ -293,6 +293,9 @@ struct {
|
|||
codes. Thus for the --server purposes we store some of the error
|
||||
codes here. FIXME! */
|
||||
gpg_error_t lasterr;
|
||||
|
||||
/* Kludge to silence some warnings using --secret-key-list. */
|
||||
int silence_parse_warnings;
|
||||
} glo_ctrl;
|
||||
|
||||
#define DBG_PACKET_VALUE 1 /* debug packet reading/writing */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue