aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-08-27 05:32:04 +0000
committerNIIBE Yutaka <[email protected]>2020-08-27 05:32:04 +0000
commit9f148360a2bf04672b43ef7cec48e21d44b06ae1 (patch)
treea2d772e11b1ac3f815a563fca80b999e9d7b424c /scd/app-common.h
parentscd: Add condition for VERIFY with 0x82. (diff)
downloadgnupg-9f148360a2bf04672b43ef7cec48e21d44b06ae1.tar.gz
gnupg-9f148360a2bf04672b43ef7cec48e21d44b06ae1.zip
scd: Add heuristics to identify cardtype.
* scd/app-common.h (cardtype_t): Add CARDTYPE_GNUK and CARDTYPE_ZEITCONTROL. * scd/app.c (strcardtype): Handle CARDTYPE_GNUK and CARDTYPE_ZEITCONTROL. (app_new_register): Detect Gnuk and Zeit Control implementation by examining its ATR string. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index ee0ba0e2e..cab82fbb6 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -53,7 +53,9 @@
typedef enum
{
CARDTYPE_GENERIC = 0,
- CARDTYPE_YUBIKEY
+ CARDTYPE_GNUK,
+ CARDTYPE_YUBIKEY,
+ CARDTYPE_ZEITCONTROL
} cardtype_t;