From 99a28c35bada8a9d181f95afeeba149527219c4c Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 16 Feb 2006 21:45:53 +0000 Subject: [PATCH] add support a TCOS card used at the uni Giessen; this is still experimental git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2849 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/pkcs15-tcos.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libopensc/pkcs15-tcos.c b/src/libopensc/pkcs15-tcos.c index d3486ebd..8d640c38 100644 --- a/src/libopensc/pkcs15-tcos.c +++ b/src/libopensc/pkcs15-tcos.c @@ -41,7 +41,8 @@ int sc_pkcs15emu_tcos_init_ex(sc_pkcs15_card_t *p15card, sc_pkcs15emu_opt_t *opt } cardlist[]={ {"Netkey E4 Card", "TeleSec GmbH"}, {"SignTrust Card", "Deutsche Post"}, - {"Smartkey Card", "Kobil GmbH"} + {"Smartkey Card", "Kobil GmbH"}, + {"UniCard Giessen", "Kobil GmbH"} }; static const struct { int type, id, writable; @@ -67,6 +68,7 @@ int sc_pkcs15emu_tcos_init_ex(sc_pkcs15_card_t *p15card, sc_pkcs15emu_opt_t *opt {-3, 0x48, 1, "42014353", "Smartkey Zertifikat B2"}, { 3, 0x49, 1, "43014352", "Smartkey Zertifikat C1"}, {-3, 0x4A, 1, "43014353", "Smartkey Zertifikat C2"}, + { 4, 0x45, 1, "41004352", "UniCard Giessen Zertifikat"}, { 0, 0, 0, NULL, NULL} }; static const struct { @@ -88,6 +90,7 @@ int sc_pkcs15emu_tcos_init_ex(sc_pkcs15_card_t *p15card, sc_pkcs15emu_opt_t *opt {3, 0x48, 1, "42015104", 0x84, "Smartkey Schlüssel B2"}, {3, 0x49, 1, "43015103", 0x83, "Smartkey Schlüssel C1"}, {3, 0x4A, 1, "43015104", 0x84, "Smartkey Schlüssel C2"}, + {4, 0x45, 1, "3F004100", 0x83, "UniCard Giessen Schlüssel"}, {0, 0, 0, NULL, 0, NULL} }; static const struct { @@ -124,6 +127,8 @@ int sc_pkcs15emu_tcos_init_ex(sc_pkcs15_card_t *p15card, sc_pkcs15emu_opt_t *opt {3, 2, 0, 8, 0x01, "5008", "globale PUK", SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_INITIALIZED | SC_PKCS15_PIN_FLAG_UNBLOCKING_PIN | SC_PKCS15_PIN_FLAG_SO_PIN}, + {4, 1, 0, 6, 0x00, "4100", "globale PIN", + SC_PKCS15_PIN_FLAG_CASE_SENSITIVE | SC_PKCS15_PIN_FLAG_INITIALIZED}, {0, 0, 0, 0, 0, NULL, NULL, 0} }; sc_card_t *card = p15card->card;