fixed problems on initialization
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@530 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -55,7 +55,7 @@ class CardGenerator(object):
|
|||||||
default_cardno = "1234567890"
|
default_cardno = "1234567890"
|
||||||
|
|
||||||
logging.warning("Using default SAM parameters. PIN=%s, Card Nr=%s"
|
logging.warning("Using default SAM parameters. PIN=%s, Card Nr=%s"
|
||||||
& (default_pin, default_cardno))
|
% (default_pin, default_cardno))
|
||||||
#TODO: Use user provided data
|
#TODO: Use user provided data
|
||||||
self.sam = SAM(default_pin, default_cardno)
|
self.sam = SAM(default_pin, default_cardno)
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class SAM(object):
|
|||||||
|
|
||||||
#Security Environments may be saved to/retrieved from this dictionary
|
#Security Environments may be saved to/retrieved from this dictionary
|
||||||
self.saved_SEs = {}
|
self.saved_SEs = {}
|
||||||
self.current_SE = Security_Environment(self)
|
self.current_SE = Security_Environment(self.mf, self)
|
||||||
|
|
||||||
def set_MF(self, mf):
|
def set_MF(self, mf):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user