mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Silence error messages for READKEY --card
* agent/command.c (cmd_readkey): Test for shadow key before creating it.
This commit is contained in:
parent
ec36eca08c
commit
8f2c9cb735
2 changed files with 9 additions and 6 deletions
|
@ -1125,9 +1125,13 @@ cmd_readkey (assuan_context_t ctx, char *line)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
rc = agent_write_shadow_key (grip, serialno, keyid, pkbuf, 0);
|
||||
if (rc)
|
||||
goto leave;
|
||||
if (agent_key_available (grip))
|
||||
{
|
||||
/* (Shadow)-key is not available in our key storage. */
|
||||
rc = agent_write_shadow_key (grip, serialno, keyid, pkbuf, 0);
|
||||
if (rc)
|
||||
goto leave;
|
||||
}
|
||||
|
||||
rc = assuan_send_data (ctx, pkbuf, pkbuflen);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue