mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Improve the code to decrypt using PIV cards.
* g10/call-agent.c (agent_scd_keypairinfo): Add arg 'keyref'.
* g10/keygen.c (ask_algo): Adjust.
* g10/skclist.c (enum_secret_keys): Request the keyref directly.
--
This improves commit ec6a677923
to avoid
looping over all keypairinfos. This way scdaemon does not need to
compute all the keypairinfos for all keys of a card. This patch is
possible due the enhanced READKEY command in scdaemon.
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
679b8f1c04
commit
2c9b68f28d
4 changed files with 26 additions and 25 deletions
|
@ -2254,7 +2254,7 @@ ask_algo (ctrl_t ctrl, int addmode, int *r_subkey_algo, unsigned int *r_usage,
|
|||
tty_printf (_("Serial number of the card: %s\n"), serialno);
|
||||
xfree (serialno);
|
||||
|
||||
err = agent_scd_keypairinfo (ctrl, &keypairlist);
|
||||
err = agent_scd_keypairinfo (ctrl, NULL, &keypairlist);
|
||||
if (err)
|
||||
{
|
||||
tty_printf (_("error reading the card: %s\n"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue