mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: Add function for binary read in extended mode.
* scd/iso7816.c (iso7816_read_binary): Factor code out to ... (iso7816_read_binary_ext): new function. Add arg extended_mode. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
c29603fa9a
commit
c9ad81070a
2 changed files with 17 additions and 4 deletions
|
@ -129,6 +129,9 @@ gpg_error_t iso7816_read_public_key (int slot, int extended_mode,
|
|||
gpg_error_t iso7816_get_challenge (int slot,
|
||||
int length, unsigned char *buffer);
|
||||
|
||||
gpg_error_t iso7816_read_binary_ext (int slot, int extended_mode,
|
||||
size_t offset, size_t nmax,
|
||||
unsigned char **result, size_t *resultlen);
|
||||
gpg_error_t iso7816_read_binary (int slot, size_t offset, size_t nmax,
|
||||
unsigned char **result, size_t *resultlen);
|
||||
gpg_error_t iso7816_read_record (int slot, int recno, int reccount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue