From 4259cea666f2d081fdebf229d38f40a5281b11d3 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 25 Jul 2011 21:11:11 +0000 Subject: Printouts of lists of certificates and CRLs do not make good exception strings svn path=/rpkid/rpki/x509.py; revision=3942 --- rpkid/rpki/x509.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rpkid/rpki/x509.py') 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) -- cgit v1.2.3