mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Update shadow-keys with --card-status also for non-openpgp cards.
* agent/command.c (cmd_readkey): Also allow for $AUTHKEYID in card mode. * g10/call-agent.c (agent_update_shadow_keys): new. * g10/card-util.c (current_card_status): Call it.
This commit is contained in:
parent
755920d433
commit
2d23a72690
4 changed files with 32 additions and 2 deletions
|
@ -1016,8 +1016,9 @@ cmd_readkey (assuan_context_t ctx, char *line)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
/* Hack to create the shadow key for the OpenPGP standard keys. */
|
||||
if ((!strcmp (keyid, "$SIGNKEYID") || !strcmp (keyid, "$ENCRKEYID"))
|
||||
/* Hack to create the shadow key for the standard keys. */
|
||||
if ((!strcmp (keyid, "$SIGNKEYID") || !strcmp (keyid, "$ENCRKEYID")
|
||||
|| !strcmp (keyid, "$AUTHKEYID"))
|
||||
&& !agent_card_getattr (ctrl, keyid, &keyidbuf))
|
||||
keyid = keyidbuf;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue