git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@648 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2011-12-08 14:01:11 +00:00
parent ca6fd219d2
commit 02913a6412

View File

@@ -24,12 +24,13 @@ from virtualsmartcard.TLVutils import unpack, bertlv_pack
import hashlib, struct
from os import urandom
from chat import CHAT
class nPA__AT_CRT(ControlReferenceTemplate):
def __init__(self):
ControlReferenceTemplate(CRT_TEMPLATE["AT"])
def parse_SE_config(self, config)
def parse_SE_config(self, config):
try:
ControlReferenceTemplate.parse_SE_config(self, config)
except SwError, e:
@@ -37,8 +38,8 @@ class nPA__AT_CRT(ControlReferenceTemplate):
for tlv in structure:
tag, length, value = structure
if tag == 0x7f4c:
chat = CHAT(bertlv_pack([tlv])
print chat
chat = CHAT(bertlv_pack([[tag, length, value]]))
print(chat)
elif tag == 0x67:
auxiliary_data = value
else: