aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-02-22 10:04:55 +0000
committerWerner Koch <[email protected]>2017-02-22 10:04:55 +0000
commit6488ffb767733a2cf92ca5ba3e61fc0c53e0f673 (patch)
tree155001a4315fee87418e97d87116d2bda66f5abd /scd/app-openpgp.c
parentagent: Prepare to pass an additional parameter to the getpin callback. (diff)
downloadgnupg-6488ffb767733a2cf92ca5ba3e61fc0c53e0f673.tar.gz
gnupg-6488ffb767733a2cf92ca5ba3e61fc0c53e0f673.zip
agent: Prepend the description to a PIN prompt.
* agent/divert-scd.c (has_percent0A_suffix): New. (getpin_cb): Prepend DESC_TEXT to the prompt. * agent/findkey.c (modify_description): Rename to ... (agent_modify_description): this. MAke global. Add kludge to remove empty parentheses from the end. (agent_key_from_file, agent_delete_key): Adjust for above change. * agent/pksign.c (agent_pksign_do): Modify DESC_TEXT also when diverting to a card. -- Now that we have support for multiple tokens, it is important to show information on which key has been requested. Without that it may happen that the PIN for a wrong card is accidentally entered. The texts are a bit ugly, because they talk about "passphrase" but later about entering a PIN. A quick hack would be to s/passphrase/PIN/ in the description but that is complicated due to i18n. Another solution might be never to talk about PINs in the description but always about "passphrase: and only use "PIN" or "passphrase" on the left of the entry field.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions