diff options
| author | Werner Koch <[email protected]> | 2011-11-06 16:01:31 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2011-11-06 16:01:31 +0000 |
| commit | 958f29d2251a96d09439e591ea3523133930e5e9 (patch) | |
| tree | 21b939412dc91322f35b85524df4804049fa1141 /g10/call-agent.h | |
| parent | typo fixes (diff) | |
| download | gnupg-958f29d2251a96d09439e591ea3523133930e5e9.tar.gz gnupg-958f29d2251a96d09439e591ea3523133930e5e9.zip | |
Allow creating subkeys using an existing key
This works by specifying the keygrip instead of an algorithm (section
number 13) and requires that the option -expert has been used. It
will be easy to extend this to the primary key.
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 1e7e15abc..43de14fe3 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -148,6 +148,10 @@ gpg_error_t agent_genkey (ctrl_t ctrl, char **cache_nonce_addr, const char *keyparms, int no_protection, gcry_sexp_t *r_pubkey); +/* Read a public key. */ +gpg_error_t agent_readkey (ctrl_t ctrl, int fromcard, const char *hexkeygrip, + unsigned char **r_pubkey); + /* Create a signature. */ gpg_error_t agent_pksign (ctrl_t ctrl, const char *cache_nonce, const char *hexkeygrip, const char *desc, |
