From fb1cdd7b0ebece16ffe60a30e4d01c5dbb1ca92b Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 11 Sep 2011 16:55:34 -0400 Subject: 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. --- agent/agent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'agent/agent.h') 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); -- cgit v1.2.3