Exemplo n.º 1
0
 def _real_send(self, apdu):
     result = Card._real_send(self, apdu)
     
     self.last_sw = result.sw
     self.sw_changed = True
     
     return result
Exemplo n.º 2
0
    def _real_send(self, apdu):
        result = Card._real_send(self, apdu)

        self.last_sw = result.sw
        self.sw_changed = True

        return result
Exemplo n.º 3
0
 def __init__(self, reader):
     Card.__init__(self, reader)
     self.last_sw = None
     self.sw_changed = False
Exemplo n.º 4
0
 def __init__(self, reader):
     Card.__init__(self, reader)
     self.last_sw = None
     self.sw_changed = False
Exemplo n.º 5
0
 def check_sw(self, sw, purpose = None):
     if purpose is not Card.PURPOSE_SM_OK:
         return Card.check_sw(self, sw, purpose)
     else:
         return sw not in ("\x69\x87", "\x69\x88")