1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-15 00:29:49 +02:00
gnupg/agent
Ben Kibbey 633ea8531e Add user defined pinentry prompts for SCD.
This adds scdaemon "OPTION pin-prompt" and "OPTION pin-admin-prompt"
along with special escapes to replace in the prompt string to inform the
user of a signature count and admin PIN attempts remaining.

It also adds another "standard" pinentry escape "|I|" to ignore the
default pinentry prompt from gpg-agent and use the supplied 'info'
parameter unmodified (cannot be used with other pinentry flags).

* agent/divert-scd.c (getpin_cb): Add |I| pinentry flag to ignore the
default prompt and use the 'info' parameter as the entire prompt.
* scd/app-common.h (PIN_PROMPT_NONE, PIN_SIGN_PROMPT, PIN_ADMIN_PROMPT):
New enumeration.
(set_pin_prompt): New application callback to set a user-defined
pinentry prompt.
* scd/app-openpgp.c (verify_a_chv): Expand a user-defined pinentry
prompt.
(build_enter_admin_pin_prompt): Ditto.
(do_change_pin): Ditto.
(do_set_pin_prompt): New.
* scd/app.c (expand_pin_prompt): New.
(app_set_pin_prompt): Ditto.
* scd/command.c (set_pinentry_prompt): New.
(option_handler): Add option 'pin-prompt' and 'pin-admin-prompt'.
(open_card): Set the user-defined pinentry prompts after selecting an
application.
2012-01-12 19:40:10 -05:00
..
agent.h Amend the agent code with more comments. 2011-12-05 15:05:57 +01:00
cache.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
call-pinentry.c Don't kill pinentry by SIGKILL but let it quit by SIGINT. 2011-12-16 09:09:41 +09:00
call-scd.c Require Libassuan 2.0.3 2011-12-20 11:12:21 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command-ssh.c Improve ssh card key diagnostic message. 2011-11-28 10:48:25 +01:00
command.c Require Libassuan 2.0.3 2011-12-20 11:12:21 +01:00
cvt-openpgp.c Fix size_t vs int issues. 2011-06-01 21:43:30 +02:00
cvt-openpgp.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
divert-scd.c Add user defined pinentry prompts for SCD. 2012-01-12 19:40:10 -05:00
findkey.c Support a confirm flag for ssh. 2011-07-20 20:49:41 +02:00
genkey.c Allow no protection in pinentry-mode=loopback. 2011-09-13 08:33:43 +02:00
gpg-agent.c Terminate csh commands with a semicolon. 2012-01-03 11:13:30 +01:00
keyformat.txt Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
learncard.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
Makefile.am Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
pkdecrypt.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
pksign.c Fix ECDSA 521 bit signing. 2011-02-07 14:38:39 +01:00
preset-passphrase.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
protect-tool.c Added gpg-agent OPTION "s2k-count". 2011-06-29 13:17:25 +02:00
protect.c Added gpg-agent OPTION "s2k-count". 2011-06-29 13:17:25 +02:00
t-protect.c Added gpg-agent OPTION "s2k-count". 2011-06-29 13:17:25 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
w32main.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00