gnupg/agent
Werner Koch 5d98f95aa9
gpg: Provide better diagnostic for replaced card keys.
* agent/divert-scd.c (divert_pksign): Add arg 'grip'.  Replace OPENPGP
key reference to keygrips.
(divert_pkdecrypt): Ditto.
* agent/protect.c (parse_shadow_info): Trim spaces.
* agent/pkdecrypt.c (agent_pkdecrypt): Pass the keygrip.
* agent/pksign.c (agent_pksign_do): Ditto.

* g10/mainproc.c (print_pkenc_list): Print extra info for an invalid
id error.
* g10/sign.c (do_sign): Ditto.
--

Using the keygrip instead of the identifier works on OpenPGP cards and
thus we use that to make sure that we are working on the right card.
For other cards we better don't do that to avoid regressions.  Those
other cards are also usually provided and do not allow to
self-generate the keys.

Note that old versions of the code (gpg 1.4) used the fingerprint as
additional check but that was eventually removed and now that we use
the keygrip all over the place, it is best to use this to identify a
key.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-11-13 16:06:59 +01:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am w32: Add manifest files to most binaries 2020-10-02 17:04:12 +02:00
agent.h gpg: Provide better diagnostic for replaced card keys. 2020-11-13 16:06:59 +01:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c agent: Make the request origin a part of the cache items. 2018-03-27 08:40:58 +02:00
call-pinentry.c agent: Allow TERM="". 2020-08-26 15:12:06 +02:00
call-scd.c agent: Stop scdaemon after reload when disable_scdaemon. 2019-05-27 09:01:55 +02:00
command-ssh.c Replace most of the remaining stdio calls by estream calls. 2020-10-21 21:09:38 +02:00
command.c Require Libgcrypt 1.8 2020-11-09 12:03:19 +01:00
cvt-openpgp.c agent: Fix secret key import for Ed25519. 2020-10-30 09:23:35 +09:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c gpg: Provide better diagnostic for replaced card keys. 2020-11-13 16:06:59 +01:00
findkey.c Replace all calls to access by gnupg_access 2020-10-21 20:49:18 +02:00
genkey.c agent: Allow to pass a timestamp to genkey and import. 2020-08-23 12:28:00 +02:00
gpg-agent-w32info.rc w32: Add manifest files to most binaries 2020-10-02 17:04:12 +02:00
gpg-agent.c w32: Support Unicode also for config files etc. 2020-11-10 12:09:11 +01:00
gpg-agent.w32-manifest.in w32: Add manifest files to most binaries 2020-10-02 17:04:12 +02:00
keyformat.txt agent: Allow to pass a timestamp to genkey and import. 2020-08-23 12:28:00 +02:00
learncard.c agent: Fix returning GPG_ERR_NOT_FOUND wrongly. 2017-11-02 17:04:03 +01:00
pkdecrypt.c gpg: Provide better diagnostic for replaced card keys. 2020-11-13 16:06:59 +01:00
pksign.c gpg: Provide better diagnostic for replaced card keys. 2020-11-13 16:06:59 +01:00
preset-passphrase.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00
protect-tool.c w32: Support Unicode also for config files etc. 2020-11-10 12:09:11 +01:00
protect.c gpg: Provide better diagnostic for replaced card keys. 2020-11-13 16:06:59 +01:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00
trans.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
trustlist.c Replace all calls to access by gnupg_access 2020-10-21 20:49:18 +02:00
w32main.c agent: Resolve conflict of util.h. 2017-03-07 19:22:48 +09:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00