1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-07-03 02:58:57 +02:00
gnupg/scd
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
..
apdu.c Merge ccid_driver_improvement branch. 2012-01-06 13:50:21 +09:00
apdu.h scd: Add more status word values for documentation. 2011-12-14 18:48:47 +01:00
app-common.h Add user defined pinentry prompts for SCD. 2012-01-12 19:40:10 -05:00
app-dinsig.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
app-geldkarte.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-help.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-nks.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
app-openpgp.c Add user defined pinentry prompts for SCD. 2012-01-12 19:40:10 -05:00
app-p15.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app.c Add user defined pinentry prompts for SCD. 2012-01-12 19:40:10 -05:00
atr.c scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
atr.h scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
card-common.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-dinsig.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-p15.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ccid-driver.c Merge ccid_driver_improvement branch. 2012-01-06 13:50:21 +09:00
ccid-driver.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c Add user defined pinentry prompts for SCD. 2012-01-12 19:40:10 -05:00
iso7816.c Fix pinpad input support for passphrase modification. 2011-12-02 13:57:12 +09:00
iso7816.h Fix pinpad input support for passphrase modification. 2011-12-02 13:57:12 +09:00
Makefile.am scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
pcsc-wrapper.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
sc-copykeys.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
scdaemon.c Fix compiler warnings. 2012-01-03 17:08:01 +01:00
scdaemon.h scd: Add debug option for reader function calls. 2011-12-14 10:21:15 +01:00