diff options
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 62b787557..13f27cb0a 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -523,7 +523,11 @@ list_all (ctrl_t ctrl, int secret, int mark_secret) lastresname = NULL; do { + if (secret) + glo_ctrl.silence_parse_warnings++; rc = keydb_get_keyblock (hd, &keyblock); + if (secret) + glo_ctrl.silence_parse_warnings--; if (rc) { if (gpg_err_code (rc) == GPG_ERR_LEGACY_KEY) |