mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
agent: Allow pksign operation with card but no file.
* agent/pksign.c (agent_pksign_do): Add support with no file. -- GnuPG-bug-id: 5166 Signed-off-by: Ingo Klöcker <dev@ingo-kloecker.de>
This commit is contained in:
parent
255d33d651
commit
cbb0e069f5
@ -324,8 +324,8 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce,
|
|||||||
log_error ("failed to read the secret key\n");
|
log_error ("failed to read the secret key\n");
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
algo = get_pk_algo_from_key (s_skey);
|
algo = get_pk_algo_from_key (s_skey);
|
||||||
|
|
||||||
if (shadow_info || no_shadow_info)
|
if (shadow_info || no_shadow_info)
|
||||||
{
|
{
|
||||||
@ -374,6 +374,8 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce,
|
|||||||
if (keyref)
|
if (keyref)
|
||||||
agent_write_shadow_key (ctrl->keygrip, serialno, keyref, pkbuf, 0);
|
agent_write_shadow_key (ctrl->keygrip, serialno, keyref, pkbuf, 0);
|
||||||
|
|
||||||
|
algo = get_pk_algo_from_key (s_pkey);
|
||||||
|
|
||||||
xfree (serialno);
|
xfree (serialno);
|
||||||
xfree (pkbuf);
|
xfree (pkbuf);
|
||||||
xfree (keyref);
|
xfree (keyref);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user