Don't use ASN.1 data as ASN.1 tuple for encoding
fixes https://github.com/frankmorgner/vsmartcard/issues/209
This commit is contained in:
@@ -118,6 +118,8 @@ def pack(tlv_data, recalculate_length=False):
|
||||
result = []
|
||||
|
||||
for data in tlv_data:
|
||||
if not isinstance(data, tuple):
|
||||
break
|
||||
tag, length, value = data[:3]
|
||||
if tag in (0xff, 0x00):
|
||||
result = result + inttostring(tag)
|
||||
|
||||
Reference in New Issue
Block a user