aboutsummaryrefslogtreecommitdiffstats
path: root/g10/apdu.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-10-27 09:14:27 +0000
committerWerner Koch <[email protected]>2005-10-27 09:14:27 +0000
commit2b50f31435c9ee14d375a67b32e8158d231527af (patch)
tree47eecd6f2c9b625a88ace353b2e473c2cf490d71 /g10/apdu.h
parent* keygen.c (proc_parameter_file): Default key and subkey usage flags to (diff)
downloadgnupg-2b50f31435c9ee14d375a67b32e8158d231527af.tar.gz
gnupg-2b50f31435c9ee14d375a67b32e8158d231527af.zip
cygwin fixes
Diffstat (limited to '')
-rw-r--r--g10/apdu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/g10/apdu.h b/g10/apdu.h
index 45388fdd1..c3af82506 100644
--- a/g10/apdu.h
+++ b/g10/apdu.h
@@ -63,7 +63,8 @@ enum {
SW_HOST_CARD_IO_ERROR = 0x1000a,
SW_HOST_GENERAL_ERROR = 0x1000b,
SW_HOST_NO_READER = 0x1000c,
- SW_HOST_ABORTED = 0x1000d
+ SW_HOST_ABORTED = 0x1000d,
+ SW_HOST_NO_KEYPAD = 0x1000e
};
@@ -96,8 +97,14 @@ int apdu_activate (int slot);
int apdu_reset (int slot);
int apdu_get_status (int slot, int hang,
unsigned int *status, unsigned int *changed);
+int apdu_check_keypad (int slot, int command, int pin_mode,
+ int pinlen_min, int pinlen_max, int pin_padlen);
int apdu_send_simple (int slot, int class, int ins, int p0, int p1,
int lc, const char *data);
+int apdu_send_simple_kp (int slot, int class, int ins, int p0, int p1,
+ int lc, const char *data,
+ int pin_mode,
+ int pinlen_min, int pinlen_max, int pin_padlen);
int apdu_send (int slot, int class, int ins, int p0, int p1,
int lc, const char *data,
unsigned char **retbuf, size_t *retbuflen);