aboutsummaryrefslogtreecommitdiffstats
path: root/scd/iso7816.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-03-31 09:53:36 +0000
committerWerner Koch <[email protected]>2020-03-31 09:53:36 +0000
commitc9ad81070a2bb1116d3f096a440c43e57e6f933a (patch)
tree57c6fdaf5ccbcaa420e3bff34bb1acede3d9ccbf /scd/iso7816.h
parentscd:p15: Improve diagnostics (diff)
downloadgnupg-c9ad81070a2bb1116d3f096a440c43e57e6f933a.tar.gz
gnupg-c9ad81070a2bb1116d3f096a440c43e57e6f933a.zip
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 <[email protected]>
Diffstat (limited to 'scd/iso7816.h')
-rw-r--r--scd/iso7816.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/iso7816.h b/scd/iso7816.h
index c1940ad8d..1a9fed726 100644
--- a/scd/iso7816.h
+++ b/scd/iso7816.h
@@ -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,