diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-11 05:23:41 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-11 05:23:41 +0000 |
commit | 125c61b4f7040e1206fa3eb5b627147bbbd5645b (patch) | |
tree | ab7657038e44498e226f79614e4abcdae5710057 /rpkid/rpki/x509.py | |
parent | 42edf90e3796d347cdf907f59b7b0977520632fd (diff) |
Pass ExitNow exceptions through, as signal handlers can raise them at any time.
svn path=/rpkid/irdbd.py; revision=2423
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index b167560c..9825e609 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -44,7 +44,7 @@ PERFORMANCE OF THIS SOFTWARE. import POW, tlslite.api, POW.pkix, base64, lxml.etree, os import rpki.exceptions, rpki.resource_set, rpki.oids, rpki.sundial -import rpki.manifest, rpki.roa, rpki.log +import rpki.manifest, rpki.roa, rpki.log, rpki.async def calculate_SKI(public_key_der): """Calculate the SKI value given the DER representation of a public @@ -672,6 +672,8 @@ class CMS_object(DER_object): try: cms = self.get_POW() + except rpki.async.ExitNow: + raise except: if self.print_on_der_error: rpki.log.debug("Problem parsing DER CMS message, might not really be DER: %s" @@ -724,6 +726,8 @@ class CMS_object(DER_object): try: content = cms.verify(store) + except rpki.async.ExitNow: + raise except: if self.dump_on_verify_failure: if True: @@ -750,6 +754,8 @@ class CMS_object(DER_object): try: cms = self.get_POW() + except rpki.async.ExitNow: + raise except: raise rpki.exceptions.UnparsableCMSDER |