aboutsummaryrefslogtreecommitdiffstats
path: root/readpass.py
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2007-06-16 06:56:57 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2007-06-16 06:56:57 +0000
commitc92a60fb101bec9e24e4593b33cea2bc1aaaa8c1 (patch)
tree09bb3022819c349022b88e138b179c2757bee7a0 /readpass.py
parent326fd9a7bea263c9c9603956b9b9e0aa3ff8b4ea (diff)
Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/
pycsc no longer supported API change: utils doesn't export "pycsc" anymore API change: utils.CommandLineArgumentHelper.connect now returns smartcard.CardService.CardService instance API change: cards.generic_card.Card.__init__ and ...can_handle (and therefore cards.new_card_object) now expect CardService or CardConnection instance git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@247 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'readpass.py')
-rwxr-xr-xreadpass.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/readpass.py b/readpass.py
index 1e36ba2..ad38508 100755
--- a/readpass.py
+++ b/readpass.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
-from utils import pycsc
import utils, cards, TLV_utils, sys, binascii, time, traceback
OPTIONS = "GW:R:"
@@ -25,8 +24,8 @@ if __name__ == "__main__":
read_files = value
if read_files is None:
- pycsc_card = c.connect()
- card = cards.new_card_object(pycsc_card)
+ card_object = c.connect()
+ card = cards.new_card_object(card_object)
cards.generic_card.DEBUG = False
print >>sys.stderr, "Using %s" % card.DRIVER_NAME