-Fixed two unhandled exceptions
-Removed some trailing whitespaces git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@164 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -1041,10 +1041,7 @@ class Secure_Messaging(object):
|
|||||||
if to_sign == "" or signature == "":
|
if to_sign == "" or signature == "":
|
||||||
raise SwError(SW["ERR_SECMESSOBJECTSMISSING"])
|
raise SwError(SW["ERR_SECMESSOBJECTSMISSING"])
|
||||||
|
|
||||||
try:
|
|
||||||
my_signature = key.sign(value)
|
my_signature = key.sign(value)
|
||||||
except error, e: #FIXME: Foobar
|
|
||||||
pass
|
|
||||||
if my_signature == signature:
|
if my_signature == signature:
|
||||||
return SW["NORMAL"], ""
|
return SW["NORMAL"], ""
|
||||||
else:
|
else:
|
||||||
@@ -1053,7 +1050,8 @@ class Secure_Messaging(object):
|
|||||||
def verify_certificate(self,p1,p2,data):
|
def verify_certificate(self,p1,p2,data):
|
||||||
if p1 != 0x00 or p2 not in (0x92,0xAE,0xBE):
|
if p1 != 0x00 or p2 not in (0x92,0xAE,0xBE):
|
||||||
raise SwError(SW["ERR_INCORRECTP1P2"])
|
raise SwError(SW["ERR_INCORRECTP1P2"])
|
||||||
pass
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def encipher(self,p1,p2,data):
|
def encipher(self,p1,p2,data):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user