[Pcsclite-cvs-commit] r3323 - in /website: matrix.py readers.txt

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Feb 23 08:18:13 UTC 2009


Author: rousseau
Date: Mon Feb 23 08:18:13 2009
New Revision: 3323

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3323
Log:
matrix.py: generate a matrix of all readers characteristics

Added:
    website/matrix.py   (with props)
    website/readers.txt

Added: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3323&op=file
==============================================================================
--- website/matrix.py (added)
+++ website/matrix.py Mon Feb 23 08:18:13 2009
@@ -1,0 +1,53 @@
+#!/usr/bin/env python
+
+#    matrix.py generate a matrix of all readers characteristics
+#    Copyright (C) 2009  Ludovic Rousseau
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+
+def parse_reader(reader):
+    """
+    parse a reader CCID descriptor and return a dictionnary
+    """
+    reader_dict = {}
+    path = "../trunk/Drivers/ccid/readers/"
+    reader_file = open(path+reader)
+    for line in reader_file.readlines():
+        line = line[0:-1]
+        l = line.strip(" ").split(':')
+        if (len(l) > 1):
+            reader_dict[l[0]] = l[1].strip(" ")
+    reader_file.close()
+    return reader_dict
+
+
+if __name__ == "__main__":
+    # one foobar.txt per line
+    list = "readers.txt"
+
+    readers = {}
+    list_file = open(list)
+    for reader in list_file.readlines():
+        # remove trailing \n
+        reader = reader[0:-1]
+        p = parse_reader(reader)
+        readers[reader] = p
+    list_file.close()
+
+    for r in readers.keys():
+        #print readers[r]
+        print readers[r]["iManufacturer"]
+        print readers[r]["dwMaxCCIDMessageLength"]

Propchange: website/matrix.py
------------------------------------------------------------------------------
    svn:executable = *

Added: website/readers.txt
URL: http://svn.debian.org/wsvn/pcsclite/website/readers.txt?rev=3323&op=file
==============================================================================
--- website/readers.txt (added)
+++ website/readers.txt Mon Feb 23 08:18:13 2009
@@ -1,0 +1,123 @@
+ACR122U_PICC.txt
+ACR122U.txt
+ACR38U-CCID.txt
+ActivCardV2.txt
+ActivCardV3.txt
+ActivkeySim.txt
+Aktiv_Rutoken_Magistra.txt
+Aladdin_eToken_PRO_USB_72K_Java.txt
+Alya.txt
+ASEDrive_IIIe_KB.txt
+ASE_IIIe.txt
+ATMEL_AT91SO.txt
+ATMEL_AT98SC032CT.txt
+AU9520.txt
+AxaltoV3.txt
+BludriveII.txt
+Broadcom_5880.txt
+C3PO_KBR36.txt
+C3PO_LTC32_USBv2_old.txt
+C3PO_LTC32_USBv2.txt
+C3PO_TLTC2USB.txt
+CardMan1021.txt
+CardMan3021.txt
+CardMan3121.txt
+CardMan3621.txt
+CardMan3821.txt
+CardMan4321.txt
+CardMan5121.txt
+CardMan5125.txt
+CardMan5321.txt
+CardMan6121.txt
+Charismathics.txt
+CherrySmartBoardXX1X.txt
+CherrySmartTerminalST2XXX.txt
+CherrySmartTerminalXX1X.txt
+CherryST1044U.txt
+CherryXX33.txt
+CherryXX44.txt
+CL1356T.txt
+CryptoIdentity.txt
+DellSCRK.txt
+DellSK-3106.txt
+e-gate.txt
+Eutron_CryptoIdentity.txt
+Eutron_Digipass_860.txt
+Eutron_Smart_Pocket.txt
+FujitsuSiemens_SmartCard_Keyboard_USB_2A.txt
+FujitsuSiemens_SmartCard_USB_2A.txt
+Gemalto_PDT.txt
+GemaltoSmartEnterpriseGuardian.txt
+GemCoreSIMPro.txt
+Gem_e-SealPro.txt
+GemPC433_SL.txt
+GemPC_Express.txt
+GemPCKey.txt
+GemPCPinpad.txt
+GemPCTwin.txt
+GnD_StarSignCardToken350.txt
+GnD_StarSignCardToken550.txt
+HP_MFP_SmartCardReader.txt
+HPUSBSmartCardKeyboard.txt
+HPUSBSmartCardReader.txt
+id3_CL1356A_HID.txt
+id3_CL1356D.txt
+iDream.txt
+iMONO.txt
+JCOP41V221.txt
+jNet_jToken_s1.txt
+KAAN_Advanced.txt
+KAAN_Base.txt
+KAAN_SIM_III.txt
+KEBTechnology_KONA_USB_SmartCard.txt
+Kobil_EMV_CAP.txt
+Lenovo.txt
+LTC31.txt
+LTC31v2.txt
+LTC32.txt
+mIDentity.txt
+mIDentityXL.txt
+MSI_StarReader_SMART.txt
+MySmartPad.txt
+Neowave_Weneo.txt
+Oberthur-CosmoCard.txt
+Omnikey_noname1.txt
+Oz776_7772.txt
+Oz776S.txt
+Philips_SmartMX.txt
+Precise_200_MC.txt
+Precise_250_MC.txt
+ReinerSCT.txt
+SCR3310.txt
+SCR3311.txt
+SCR331-DI-NTTCom.txt
+SCR331-DI.txt
+SCR331.txt
+SCR3320.txt
+SCR333.txt
+SCR3340.txt
+SCR335.txt
+SCR355.txt
+SDI010.txt
+sid800.txt
+SIM_Pocket_Combo.txt
+Sitecom_MD-010.txt
+SPR532.txt
+SpringCard_CrazyWriter.txt
+SpringCard_CSB6_Basic.txt
+SpringCard_CSB6_Secure.txt
+SpringCard_CSB6_Ultimate.txt
+SpringCard_EasyFinger_Standard.txt
+SpringCard_EasyFinger_Ultimate.txt
+SpringCard_Prox_N_Roll.txt
+Teo.txt
+TianYu_CCID_SmartKey.txt
+Validy_TokenA.txt
+Vasco_DP905.txt
+Vega-Alpha.txt
+Verisign_secure_storage_token.txt
+Verisign_secure_token.txt
+VMware_Virtual_USB_CCID.txt
+Winbond.txt
+Xiring_XI-SIGN_6000.txt
+Xiring_XI-SIGN.txt




More information about the Pcsclite-cvs-commit mailing list