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 1274775d2..801568adb 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -542,7 +542,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) |