-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:
oepen
2010-06-22 18:16:07 +00:00
parent 0b03fced4a
commit a1766913a3

View File

@@ -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):
""" """