gnupg2/g10
Werner Koch 0410af8a36 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>
(cherry picked from commit 59d49e4a0ac2ed27803507cb7d2c6af166527bd5)
(cherry picked from commit def1ceccf05baf187b9313e6e37171709ab44225)

Gbp-Pq: Topic from-master
Gbp-Pq: Name gpg-Fix-output-of-with-secret-if-a-pattern-is-given.patch
2022-05-13 23:35:57 +08:00
..
ChangeLog-2011 Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
Makefile.am Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
Makefile.in Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
all-tests.scm Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
armor.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
build-packet.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
call-agent.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
call-agent.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
call-dirmngr.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
call-dirmngr.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
card-util.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
cipher.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
compress-bz2.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
compress.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
cpr.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
dearmor.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
decrypt-data.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
decrypt.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
dek.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
delkey.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
distsigkey.gpg Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
ecdh.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
encrypt.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
exec.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
exec.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
export.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
filter.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
free-packet.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
getkey.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpg-w32info.rc Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpg.c gpg: drop import-clean from default keyserver import options 2022-05-13 23:35:57 +08:00
gpg.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpg.w32-manifest.in Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpgcompose.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpgsql.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpgsql.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
gpgv.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
helptext.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
import.c gpg: accept subkeys with a good revocation but no self-sig during import 2022-05-13 23:35:57 +08:00
kbnode.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
key-check.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
key-check.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
key-clean.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
key-clean.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keydb.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keydb.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keyedit.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keyedit.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keygen.c gpg: Prefer SHA-512 and SHA-384 in personal-digest-preferences. 2022-05-13 23:35:57 +08:00
keyid.c gpg: default to 3072-bit RSA keys. 2022-05-13 23:35:57 +08:00
keylist.c gpg: Fix output of --with-secret if a pattern is given. 2022-05-13 23:35:57 +08:00
keyring.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keyring.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keyserver-internal.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
keyserver.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
main.h gpg: Default to SHA-512 for all signature types on RSA keys. 2022-05-13 23:35:57 +08:00
mainproc.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
mdfilter.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
migrate.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
misc.c gpg: Default to SHA-512 for all signature types on RSA keys. 2022-05-13 23:35:57 +08:00
openfile.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
options.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
packet.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
parse-packet.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
passphrase.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
photoid.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
photoid.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
pkclist.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
pkglue.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
pkglue.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
plaintext.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
progress.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
pubkey-enc.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
revoke.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
rmd160.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
rmd160.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
server.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
seskey.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
sig-check.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
sign.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
skclist.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-keydb-get-keyblock.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-keydb-get-keyblock.gpg Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-keydb-keyring.kbx Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-keydb.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-rmd160.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-stutter-data.asc Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
t-stutter.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
tdbdump.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
tdbio.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
tdbio.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
test-stubs.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
test.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
textfilter.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
tofu.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
tofu.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
trust.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
trustdb.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
trustdb.h Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00
verify.c Import Upstream version 2.2.19 2022-05-13 23:35:49 +08:00