mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Use ephemeral mode for generating card keys.
* g10/call-agent.c (agent_set_ephemeral_mode): New. * g10/keyedit.c (keyedit_menu) <bkuptocard>: Switch to ephemeral mode. * g10/keygen.c (do_generate_keypair): Switch to ephemeral mode for card keys with backup. -- GnuPG-bug-id: 6944
This commit is contained in:
parent
434a641d40
commit
ead2982286
4 changed files with 104 additions and 19 deletions
|
@ -247,6 +247,10 @@ gpg_error_t agent_delete_key (ctrl_t ctrl, const char *hexkeygrip,
|
|||
gpg_error_t agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc,
|
||||
int verify,
|
||||
char **cache_nonce_addr, char **passwd_nonce_addr);
|
||||
|
||||
/* Set or get the ephemeral mode. */
|
||||
gpg_error_t agent_set_ephemeral_mode (ctrl_t ctrl, int enable, int *r_previous);
|
||||
|
||||
/* Get the version reported by gpg-agent. */
|
||||
gpg_error_t agent_get_version (ctrl_t ctrl, char **r_version);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue