mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Make sure that we are not accidently working with the PIV app.
* g10/call-agent.c (agent_scd_switchapp): New. * g10/card-util.c (get_info_for_key_operation): Call it. -- It may happen that the active card was last used for PIV and in that case certain commands will fail because they assume the OpenPGP app. Fortunately we have a pretty central place to assure that the right app has been selected. The bug can be easily noticed on Windows. GnuPG-bug-id: 6378
This commit is contained in:
parent
f7e00dc73d
commit
fa4f716917
4 changed files with 30 additions and 0 deletions
|
@ -108,6 +108,9 @@ gpg_error_t agent_scd_keypairinfo (ctrl_t ctrl, const char *keyref,
|
|||
/* Return list of cards. */
|
||||
int agent_scd_cardlist (strlist_t *result);
|
||||
|
||||
/* Switch/assure a certain application. */
|
||||
gpg_error_t agent_scd_switchapp (const char *appname);
|
||||
|
||||
/* Free a keypair info list. */
|
||||
void free_keypair_info (keypair_info_t l);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue