* passphrase.c (ask_passphrase): Add optional promptid arg.
authorWerner Koch <wk@gnupg.org>
Tue, 21 Oct 2003 18:22:21 +0000 (18:22 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 21 Oct 2003 18:22:21 +0000 (18:22 +0000)
commit441aeb85f21436b1ae2ecd1de420138016baba57
treefc1c2ed359f38e7700ef53c0872117f571712d4b
parentb194ed0e0a0f04d4e5358030ce5d5e7bed1b7f00
* passphrase.c (ask_passphrase): Add optional promptid arg.
Changed all callers.
* cardglue.c (pin_cb): Use it here, so the machine interface can
tell whether the Admin PIN is requested.

* cardglue.c (agent_scd_checkpin): New.

* misc.c (openpgp_pk_algo_usage): Added AUTH usage.

* app-openpgp.c (check_against_given_fingerprint): New. Factored
out that code elsewhere.
(do_check_pin): New.
* card-util.c (card_edit): New command "passwd".  Add logic to
check the PIN in advance.
(card_status): Add new args to return the serial number.  Changed
all callers.
14 files changed:
ChangeLog
configure.ac
g10/ChangeLog
g10/apdu.c
g10/app-common.h
g10/app-openpgp.c
g10/card-util.c
g10/cardglue.c
g10/cardglue.h
g10/g10.c
g10/keydb.h
g10/main.h
g10/misc.c
g10/passphrase.c