mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
32118628a0
commit
958f29d225
8 changed files with 242 additions and 59 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue