mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Store Link attributes for composite keys.
* g10/call-agent.c (agent_crosslink_keys): New. * g10/keygen.c (common_gen): Store the Link attribute. -- The Link attribute may be useful to quickly find the other part of a composite private key. GnuPG-bug-id: 6638
This commit is contained in:
parent
00c31f8b04
commit
3738b0a99a
3 changed files with 57 additions and 0 deletions
|
@ -202,6 +202,10 @@ gpg_error_t agent_genkey (ctrl_t ctrl,
|
|||
const char *passphrase, time_t timestamp,
|
||||
gcry_sexp_t *r_pubkey);
|
||||
|
||||
/* Apply the Link attributes. */
|
||||
gpg_error_t agent_crosslink_keys (ctrl_t ctrl,
|
||||
const char *hexgrip1, const char *hexgrip2);
|
||||
|
||||
/* Read a public key. FROMCARD may be 0, 1, or 2. */
|
||||
gpg_error_t agent_readkey (ctrl_t ctrl, int fromcard, const char *hexkeygrip,
|
||||
unsigned char **r_pubkey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue