diff options
author | Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> | 2017-07-24 16:03:25 +0200 |
---|---|---|
committer | Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> | 2017-07-24 16:03:25 +0200 |
commit | d8e46f10698da0bee4cd58d95f1f9832bdda0c5f (patch) | |
tree | 05e314438ad7886b8983e206ed228307dd69ea6f /g10/call-agent.h | |
parent | doc: Revert the bug reporting address to bugs.gnupg.org (diff) | |
download | gnupg2-d8e46f10698da0bee4cd58d95f1f9832bdda0c5f.tar.xz gnupg2-d8e46f10698da0bee4cd58d95f1f9832bdda0c5f.zip |
g10: Make sure to emit NEED_PASSPHRASE on --export-secret-key.
* call-agent.h (agent_export_key): Add keyid parameters.
* call-agent.c (agent_export_key): Set keyid parameters.
* export.c (receive_seckey_from_agent): Pass keyid parameters.
Signed-off-by: Marcus Brinkmann <mb@g10code.com>
GnuPG-bug-id: 2667
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index a04fc734c..dcabbe8ff 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -192,7 +192,8 @@ gpg_error_t agent_import_key (ctrl_t ctrl, const char *desc, gpg_error_t agent_export_key (ctrl_t ctrl, const char *keygrip, const char *desc, int openpgp_protected, char **cache_nonce_addr, - unsigned char **r_result, size_t *r_resultlen); + unsigned char **r_result, size_t *r_resultlen, + u32 *keyid, u32 *mainkeyid, int pubkey_algo); /* Delete a key from the agent. */ gpg_error_t agent_delete_key (ctrl_t ctrl, const char *hexkeygrip, |