From 6b5b1a0c298868178506cc15fc139724299301e0 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Mon, 15 Sep 2014 21:23:01 +0200 Subject: [PATCH] allow fid of ef.dir and ef.atr for file creation --- .../src/vpicc/virtualsmartcard/SmartcardFilesystem.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py index 1b38ef2..2d58958 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py @@ -237,9 +237,8 @@ class File(object): """ The constructor is supposed to be involved by creation of a DF or EF. """ - if (fid>0xFFFF or fid<0 or fid in [FID["EFDIR"], FID["EFATR"], - FID["PATHSELECTION"], FID["RESERVED"]] or filedescriptor>0xFF or - lifecycle>0xFF): + if (fid>0xFFFF or fid<0 or fid in [FID["PATHSELECTION"], + FID["RESERVED"]] or filedescriptor>0xFF or lifecycle>0xFF): raise SwError(SW["ERR_INCORRECTPARAMETERS"]) self.lifecycle = lifecycle self.parent = parent