scd: One new and one improved 7816 function.
authorWerner Koch <wk@gnupg.org>
Sun, 20 Jan 2019 10:41:23 +0000 (11:41 +0100)
committerWerner Koch <wk@gnupg.org>
Sun, 20 Jan 2019 10:41:23 +0000 (11:41 +0100)
commit70bb5c7931598590b1acfae90bf4657f5911d2d3
tree2528e900b7df2c1af710afb3a5bccc0e8e926e96
parentd93797c8a7892fe26672c551017468e9f8099ef6
scd: One new and one improved 7816 function.

* scd/apdu.c (apdu_send_direct): New arg R_SW.
* scd/command.c (cmd_apdu): Ditto.
* scd/iso7816.c (iso7816_apdu_direct): New arg R_SW.
(iso7816_general_authenticate): New.
* scd/app-nks.c (get_chv_status, get_nks_version): Pass NULL for new
arg.
--

iso7816_general_authenticate will be used for the PIV card support.
The new arg to iso7816_apdu_direct and apdu_send_direct allows to get
the raw status word back without the need to handle an output buffer.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/apdu.c
scd/apdu.h
scd/app-nks.c
scd/command.c
scd/iso7816.c
scd/iso7816.h