Home GnuPG
Diffusion GnuPG 59d49e4a0ac2

gpg: Fix output of --with-secret if a pattern is given.

Description

gpg: Fix output of --with-secret if a pattern is given.

* g10/keylist.c (list_one): Probe for a secret key in --with-secret
mode.

In contrast to list_all(), list_one() did not tests for a secret key
and took MARK_TRUSTED verbatim as an indication for "secret key
available".

GnuPG-bug: 4061

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 23 2019, 12:39 PM
Parents
rGcc531cc21034: doc: Typ fix in comment
Branches
Unknown
Tags
Unknown