aboutsummaryrefslogtreecommitdiffstats
path: root/cyberflex-shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'cyberflex-shell.py')
-rwxr-xr-xcyberflex-shell.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cyberflex-shell.py b/cyberflex-shell.py
index 9ff3339..788824e 100755
--- a/cyberflex-shell.py
+++ b/cyberflex-shell.py
@@ -230,10 +230,13 @@ class Cyberflex_Shell(Shell):
self.card.last_delta = None
def do_fancy_apdu(self, *args):
- "Parse and transmit a fancy APDU"
+ "Parse and transmit a fancy command"
apdu = None
try:
- apdu = utils.C_APDU.parse_fancy(*args)
+ if hasattr(self.card.COMMAND_CLASS, "parse_fancy"):
+ apdu = self.card.COMMAND_CLASS.parse_fancy(*args)
+ else:
+ apdu = self.card.COMMAND_CLASS(*args)
except ValueError:
raise NotImplementedError