Bugfixes
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@648 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -24,12 +24,13 @@ from virtualsmartcard.TLVutils import unpack, bertlv_pack
|
|||||||
|
|
||||||
import hashlib, struct
|
import hashlib, struct
|
||||||
from os import urandom
|
from os import urandom
|
||||||
|
from chat import CHAT
|
||||||
|
|
||||||
class nPA__AT_CRT(ControlReferenceTemplate):
|
class nPA__AT_CRT(ControlReferenceTemplate):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
ControlReferenceTemplate(CRT_TEMPLATE["AT"])
|
ControlReferenceTemplate(CRT_TEMPLATE["AT"])
|
||||||
|
|
||||||
def parse_SE_config(self, config)
|
def parse_SE_config(self, config):
|
||||||
try:
|
try:
|
||||||
ControlReferenceTemplate.parse_SE_config(self, config)
|
ControlReferenceTemplate.parse_SE_config(self, config)
|
||||||
except SwError, e:
|
except SwError, e:
|
||||||
@@ -37,8 +38,8 @@ class nPA__AT_CRT(ControlReferenceTemplate):
|
|||||||
for tlv in structure:
|
for tlv in structure:
|
||||||
tag, length, value = structure
|
tag, length, value = structure
|
||||||
if tag == 0x7f4c:
|
if tag == 0x7f4c:
|
||||||
chat = CHAT(bertlv_pack([tlv])
|
chat = CHAT(bertlv_pack([[tag, length, value]]))
|
||||||
print chat
|
print(chat)
|
||||||
elif tag == 0x67:
|
elif tag == 0x67:
|
||||||
auxiliary_data = value
|
auxiliary_data = value
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user