diff options
author | NIIBE Yutaka <[email protected]> | 2020-08-27 05:32:04 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-08-27 05:32:04 +0000 |
commit | 9f148360a2bf04672b43ef7cec48e21d44b06ae1 (patch) | |
tree | a2d772e11b1ac3f815a563fca80b999e9d7b424c /scd/app-common.h | |
parent | scd: Add condition for VERIFY with 0x82. (diff) | |
download | gnupg-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.h | 4 |
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; |