diff options
author | Werner Koch <[email protected]> | 2025-02-07 10:10:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-02-07 10:10:09 +0000 |
commit | 3738b0a99a45c09fa5f66e80110dbdff185bbf7c (patch) | |
tree | 69c798efcd35eb3d7745cf30377154aa8f427d51 /g10/call-agent.h | |
parent | gpg: New option --disable-pqc-encryption. (diff) | |
download | gnupg-3738b0a99a45c09fa5f66e80110dbdff185bbf7c.tar.gz gnupg-3738b0a99a45c09fa5f66e80110dbdff185bbf7c.zip |
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
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index 1e72dc03f..282ba066b 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -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); |