scd: Clean up internal API for APP.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 22 Dec 2016 12:14:26 +0000 (21:14 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 22 Dec 2016 12:14:26 +0000 (21:14 +0900)
commit8431f5a7e88e1f42d75c4a4b61f4aa9b35457204
tree7a7537edcf5756ec8f84babaf34281608af3e814
parent6e96cdd41a0e55b672309431062f37c4a4a9f485
scd: Clean up internal API for APP.

* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.

--

APP is an abstraction of the "card application".  Most methods of APP
should have CTRL argument to report back progress to the session.  This
change fixes FIXMEs for missing CTRL.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-common.h
scd/app.c
scd/command.c