Ejemplo n.º 1
0
 def select_application(self, aid, le=0, **kwargs):
     result = self.send_apdu(
         C_APDU(self.APDU_SELECT_APPLICATION,
         data = aid, le = le, **kwargs) ) ## FIXME With or without le
     if self.check_sw(result.sw):
         Application.load_applications(self, aid)
     return result
Ejemplo n.º 2
0
 def select_application(self, aid, le=0, **kwargs):
     result = self.send_apdu(
         C_APDU(self.APDU_SELECT_APPLICATION, data=aid, le=le,
                **kwargs))  ## FIXME With or without le
     if self.check_sw(result.sw):
         Application.load_applications(self, aid)
     return result
Ejemplo n.º 3
0
 def cmd_pretendapplication(self, application):
     "Pretend that an application has been selected on the card without actually sending a SELECT APPLICATION. Basically for debugging purposes."
     aid = self.resolve_symbolic_aid(application)
     Application.load_applications(self, aid)
Ejemplo n.º 4
0
 def cmd_pretendapplication(self, application):
     "Pretend that an application has been selected on the card without actually sending a SELECT APPLICATION. Basically for debugging purposes."
     aid = self.resolve_symbolic_aid(application)
     Application.load_applications(self, aid)