Home GnuPG
Diffusion GnuPG 4c04143d8137

gpg: Choose key from inserted card over a non-inserted card

Description

gpg: Choose key from inserted card over a non-inserted card

* g10/call-agent.c (agent_probe_secret_key): Do not return an error
but 0.
* g10/getkey.c (finish_lookup): Improve the selection of secret keys.