mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Create and use Token entries to track the display s/n.
* agent/findkey.c (agent_write_private_key): Add arg dispserialno and update the token. (agent_write_shadow_key): Add arg dispserialno and adjust all callers. -- GnuPG-bug-id: 6135 Note that this has been forward ported from 2.2
This commit is contained in:
parent
a048a93ed2
commit
13013ec1c0
10 changed files with 102 additions and 29 deletions
|
@ -1148,7 +1148,7 @@ convert_from_openpgp_native (ctrl_t ctrl,
|
|||
&protectedkey, &protectedkeylen,
|
||||
ctrl->s2k_count))
|
||||
agent_write_private_key (grip, protectedkey, protectedkeylen, 1,
|
||||
NULL, NULL, 0);
|
||||
NULL, NULL, NULL, 0);
|
||||
xfree (protectedkey);
|
||||
}
|
||||
else
|
||||
|
@ -1157,7 +1157,7 @@ convert_from_openpgp_native (ctrl_t ctrl,
|
|||
agent_write_private_key (grip,
|
||||
*r_key,
|
||||
gcry_sexp_canon_len (*r_key, 0, NULL,NULL),
|
||||
1, NULL, NULL, 0);
|
||||
1, NULL, NULL, NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue