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
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
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)