aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorBen Kibbey <[email protected]>2011-09-11 20:55:34 +0000
committerWerner Koch <[email protected]>2011-09-12 07:54:16 +0000
commitfb1cdd7b0ebece16ffe60a30e4d01c5dbb1ca92b (patch)
tree3b5768e1b8efe24ac70e3797638347095cede82a /agent/agent.h
parentMark component descriptions for translation. (diff)
downloadgnupg-fb1cdd7b0ebece16ffe60a30e4d01c5dbb1ca92b.tar.gz
gnupg-fb1cdd7b0ebece16ffe60a30e4d01c5dbb1ca92b.zip
Handle pinentry-mode=loopback.
When this mode is set an inquire will be sent to the client to retrieve the passphrase. This adds a new inquire keyword "NEW_PASSPHRASE" that the GENKEY and PASSWD commands use when generating a new key.
Diffstat (limited to '')
-rw-r--r--agent/agent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index fbd71d51e..b323718fc 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -252,6 +252,9 @@ gpg_error_t agent_write_status (ctrl_t ctrl, const char *keyword, ...)
void bump_key_eventcounter (void);
void bump_card_eventcounter (void);
void start_command_handler (ctrl_t, gnupg_fd_t, gnupg_fd_t);
+gpg_error_t pinentry_loopback(ctrl_t, const char *keyword,
+ unsigned char **buffer, size_t *size,
+ size_t max_length);
/*-- command-ssh.c --*/
void start_command_handler_ssh (ctrl_t, gnupg_fd_t);