From 02913a64125112e5cce74b518018a1ee4d10892d Mon Sep 17 00:00:00 2001 From: oepen Date: Thu, 8 Dec 2011 14:01:11 +0000 Subject: [PATCH] Bugfixes git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@648 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py index e832650..b347230 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py @@ -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: