diff options
author | Werner Koch <[email protected]> | 2019-01-20 10:41:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-20 10:41:23 +0000 |
commit | 70bb5c7931598590b1acfae90bf4657f5911d2d3 (patch) | |
tree | 2528e900b7df2c1af710afb3a5bccc0e8e926e96 /scd/apdu.h | |
parent | ssh: Simplify the curve name lookup. (diff) | |
download | gnupg-70bb5c7931598590b1acfae90bf4657f5911d2d3.tar.gz gnupg-70bb5c7931598590b1acfae90bf4657f5911d2d3.zip |
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 <[email protected]>
Diffstat (limited to 'scd/apdu.h')
-rw-r--r-- | scd/apdu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/apdu.h b/scd/apdu.h index 8621ddc41..1392aab71 100644 --- a/scd/apdu.h +++ b/scd/apdu.h @@ -138,7 +138,7 @@ int apdu_send_le (int slot, int extended_mode, unsigned char **retbuf, size_t *retbuflen); int apdu_send_direct (int slot, size_t extended_length, const unsigned char *apdudata, size_t apdudatalen, - int handle_more, + int handle_more, unsigned int *r_sw, unsigned char **retbuf, size_t *retbuflen); const char *apdu_get_reader_name (int slot); |