import chat as late as possible to not confuse generation of documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@652 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2011 Dominik Oepen
|
# Copyright (C) 2011 Dominik Oepen, Frank Morgner
|
||||||
#
|
#
|
||||||
# This file is part of virtualsmartcard.
|
# This file is part of virtualsmartcard.
|
||||||
#
|
#
|
||||||
@@ -22,10 +22,6 @@ from virtualsmartcard.SWutils import SwError, SW
|
|||||||
from virtualsmartcard.ConstantDefinitions import CRT_TEMPLATE
|
from virtualsmartcard.ConstantDefinitions import CRT_TEMPLATE
|
||||||
from virtualsmartcard.TLVutils import unpack, bertlv_pack
|
from virtualsmartcard.TLVutils import unpack, bertlv_pack
|
||||||
|
|
||||||
import hashlib, struct
|
|
||||||
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.__init__(self, CRT_TEMPLATE["AT"])
|
ControlReferenceTemplate.__init__(self, CRT_TEMPLATE["AT"])
|
||||||
@@ -38,6 +34,7 @@ class nPA_AT_CRT(ControlReferenceTemplate):
|
|||||||
for tlv in structure:
|
for tlv in structure:
|
||||||
tag, length, value = tlv
|
tag, length, value = tlv
|
||||||
if tag == 0x7f4c:
|
if tag == 0x7f4c:
|
||||||
|
from chat import CHAT
|
||||||
chat = CHAT(bertlv_pack([[tag, length, value]]))
|
chat = CHAT(bertlv_pack([[tag, length, value]]))
|
||||||
print(chat)
|
print(chat)
|
||||||
elif tag == 0x67:
|
elif tag == 0x67:
|
||||||
|
|||||||
Reference in New Issue
Block a user