fixed parsing of MSE:SET AT for nPA in AusweisApp2
This commit is contained in:
@@ -70,7 +70,7 @@ class ControlReferenceTemplate:
|
|||||||
|
|
||||||
:param config: a TLV string containing the configuration for the CRT.
|
:param config: a TLV string containing the configuration for the CRT.
|
||||||
"""
|
"""
|
||||||
|
error = False
|
||||||
structure = unpack(config)
|
structure = unpack(config)
|
||||||
for tlv in structure:
|
for tlv in structure:
|
||||||
tag, length, value = tlv
|
tag, length, value = tlv
|
||||||
@@ -83,8 +83,11 @@ class ControlReferenceTemplate:
|
|||||||
elif tag == 0x95:
|
elif tag == 0x95:
|
||||||
self.usage_qualifier = value
|
self.usage_qualifier = value
|
||||||
else:
|
else:
|
||||||
raise SwError(SW["ERR_REFNOTUSABLE"])
|
error = True
|
||||||
|
|
||||||
|
if error:
|
||||||
|
raise SwError(SW["ERR_REFNOTUSABLE"])
|
||||||
|
else:
|
||||||
return SW["NORMAL"], ""
|
return SW["NORMAL"], ""
|
||||||
|
|
||||||
def __set_algo(self, data):
|
def __set_algo(self, data):
|
||||||
|
|||||||
Reference in New Issue
Block a user