mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
(cherry picked from commit 70bb5c7931
)
This commit is contained in:
parent
11a65159f9
commit
9309175de8
6 changed files with 90 additions and 27 deletions
|
@ -58,7 +58,7 @@ gpg_error_t iso7816_list_directory (int slot, int list_dirs,
|
|||
unsigned char **result, size_t *resultlen);
|
||||
gpg_error_t iso7816_apdu_direct (int slot,
|
||||
const void *apdudata, size_t apdudatalen,
|
||||
int handle_more,
|
||||
int handle_more, unsigned int *r_sw,
|
||||
unsigned char **result, size_t *resultlen);
|
||||
gpg_error_t iso7816_check_pinpad (int slot, int command,
|
||||
pininfo_t *pininfo);
|
||||
|
@ -97,6 +97,13 @@ gpg_error_t iso7816_internal_authenticate (int slot, int extended_mode,
|
|||
const unsigned char *data, size_t datalen,
|
||||
int le,
|
||||
unsigned char **result, size_t *resultlen);
|
||||
gpg_error_t iso7816_general_authenticate (int slot, int extended_mode,
|
||||
int algoref, int keyref,
|
||||
const unsigned char *data,
|
||||
size_t datalen,
|
||||
int le,
|
||||
unsigned char **result,
|
||||
size_t *resultlen);
|
||||
gpg_error_t iso7816_generate_keypair (int slot, int extended_mode,
|
||||
const char *data, size_t datalen,
|
||||
int le,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue