* agent.h: Add a callback function to the pin_entry_info structure.
authorWerner Koch <wk@gnupg.org>
Mon, 17 Jun 2002 10:11:34 +0000 (10:11 +0000)
committerWerner Koch <wk@gnupg.org>
Mon, 17 Jun 2002 10:11:34 +0000 (10:11 +0000)
commit469dc1043df7cba113fedfbd10c1ad4052d9d6ee
tree84a2a73d1f9ad60fd6eb2b080efb84f41e72237f
parentccb0bb10e11007193fb9f91dfdb1494bd09143c1
* agent.h: Add a callback function to the pin_entry_info structure.
* query.c (agent_askpin): Use the callback to check for a correct
PIN.  Removed the start_err_text argument becuase it is not
anymore needed; changed callers.
* findkey.c (unprotect): Replace our own check loop by a callback.
(try_unprotect_cb): New.
* genkey.c (reenter_compare_cb): New.
(agent_genkey): Use this callback here.  Fixed setting of the pi2
variable and a segv in case of an empty PIN.

* divert-scd.c (getpin_cb): Removed some unused stuff and
explained what we still have to change.
agent/ChangeLog
agent/agent.h
agent/divert-scd.c
agent/findkey.c
agent/genkey.c
agent/query.c