aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-04-22 06:24:53 +0000
committerRob Austein <sra@hactrn.net>2008-04-22 06:24:53 +0000
commit05c897f3331f2392455fa772606c6985ad8a7e0d (patch)
tree462cc65cb9b4f9f97d2f9d672ff44ae44526baeb /rpkid/rpki/x509.py
parent8345451124649f3983a0d9a53e3efb82bd14e8f4 (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.py2
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: