diff options
author | Rob Austein <sra@hactrn.net> | 2011-07-25 21:11:11 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2011-07-25 21:11:11 +0000 |
commit | 4259cea666f2d081fdebf229d38f40a5281b11d3 (patch) | |
tree | 07c6dbe3c53ac6302b2d11f1951f83ffd398e347 | |
parent | 6afb20ad7d920856e9a7f318fb7c78056eb0002f (diff) |
Printouts of lists of certificates and CRLs do not make good exception strings
svn path=/rpkid/rpki/x509.py; revision=3942
-rw-r--r-- | rpkid/rpki/x509.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index dba4de30..a597cb2f 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -933,21 +933,21 @@ class CMS_object(DER_object): if self.debug_cms_certs: rpki.log.debug("Trusted CMS EE cert issuer %s subject %s SKI %s" % (trusted_ee.getIssuer(), trusted_ee.getSubject(), trusted_ee.hSKI())) if certs and (len(certs) > 1 or certs[0].getSubject() != trusted_ee.getSubject() or certs[0].getPublicKey() != trusted_ee.getPublicKey()): - raise rpki.exceptions.UnexpectedCMSCerts, certs + raise rpki.exceptions.UnexpectedCMSCerts # , certs if crls: - raise rpki.exceptions.UnexpectedCMSCRLs, crls + raise rpki.exceptions.UnexpectedCMSCRLs # , crls else: if not certs: - raise rpki.exceptions.MissingCMSEEcert, certs + raise rpki.exceptions.MissingCMSEEcert # , certs if len(certs) > 1 or certs[0].is_CA(): - raise rpki.exceptions.UnexpectedCMSCerts, certs + raise rpki.exceptions.UnexpectedCMSCerts # , certs if not crls: if self.require_crls: - raise rpki.exceptions.MissingCMSCRL, crls + raise rpki.exceptions.MissingCMSCRL # , crls else: rpki.log.warn("MISSING CMS CRL! Ignoring per self.require_crls setting") if len(crls) > 1: - raise rpki.exceptions.UnexpectedCMSCRLs, crls + raise rpki.exceptions.UnexpectedCMSCRLs # , crls try: content = cms.verify(store) |