diff options
author | Rob Austein <sra@hactrn.net> | 2008-04-22 06:24:53 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-04-22 06:24:53 +0000 |
commit | 05c897f3331f2392455fa772606c6985ad8a7e0d (patch) | |
tree | 462cc65cb9b4f9f97d2f9d672ff44ae44526baeb /rpkid/rpki/x509.py | |
parent | 8345451124649f3983a0d9a53e3efb82bd14e8f4 (diff) |
Rehome RPKI exceptions under RPKI_Exception
svn path=/rpkid/rpki/exceptions.py; revision=1690
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index d220f39d..7879f16c 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -644,6 +644,8 @@ class CMS_object(DER_object): """Verify CMS wrapper and store inner content.""" cms = POW.derRead(POW.CMS_MESSAGE, self.get_DER()) + if cms.eContentType() != self.econtent_oid: + raise rpki.exceptions.WrongEContentType, "Got CMS eContentType %s, expected %s" % (cms.eContentType(), self.econtent_oid) store = POW.X509Store() if isinstance(ta, (tuple, list)): for x in ta: |