summaryrefslogtreecommitdiffstats
path: root/scd/iso7816.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-01-03 15:18:15 +0100
committerWerner Koch <wk@gnupg.org>2019-01-03 15:18:15 +0100
commit405feca2bdeeb620dc406667a702035a123ae848 (patch)
tree460c0507d00103e166ed826672065b4718cc960c /scd/iso7816.h
parentscd: Support "READKEY --advanced" for all cards. (diff)
downloadgnupg2-405feca2bdeeb620dc406667a702035a123ae848.tar.xz
gnupg2-405feca2bdeeb620dc406667a702035a123ae848.zip
scd: Add two variants to the set of ISO7816 functions.
* scd/iso7816.c (iso7816_select_application_ext): New. (iso7816_get_data_odd): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd/iso7816.h')
-rw-r--r--scd/iso7816.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scd/iso7816.h b/scd/iso7816.h
index 4c71bbd50..332fc0e81 100644
--- a/scd/iso7816.h
+++ b/scd/iso7816.h
@@ -51,6 +51,11 @@ gpg_error_t iso7816_map_sw (int sw);
gpg_error_t iso7816_select_application (int slot,
const char *aid, size_t aidlen,
unsigned int flags);
+gpg_error_t iso7816_select_application_ext (int slot,
+ const char *aid, size_t aidlen,
+ unsigned int flags,
+ unsigned char **result,
+ size_t *resultlen);
gpg_error_t iso7816_select_file (int slot, int tag, int is_dir);
gpg_error_t iso7816_select_path (int slot,
const unsigned short *path, size_t pathlen);
@@ -78,6 +83,8 @@ gpg_error_t iso7816_reset_retry_counter_with_rc (int slot, int chvno,
size_t datalen);
gpg_error_t iso7816_get_data (int slot, int extended_mode, int tag,
unsigned char **result, size_t *resultlen);
+gpg_error_t iso7816_get_data_odd (int slot, int extended_mode, unsigned int tag,
+ unsigned char **result, size_t *resultlen);
gpg_error_t iso7816_put_data (int slot, int extended_mode, int tag,
const void *data, size_t datalen);
gpg_error_t iso7816_put_data_odd (int slot, int extended_mode, int tag,