diff options
author | Rob Austein <sra@hactrn.net> | 2008-04-30 04:51:29 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-04-30 04:51:29 +0000 |
commit | ecc5ee4eda287ce7b41e42b8ce2edbff0df00d21 (patch) | |
tree | f93eac927955ee82be728041fbb235cc2c6a61cf /rpkid/rpki/exceptions.py | |
parent | 586bc074a1052c57abefb737c572aa94c1afd822 (diff) |
Implement most of the administrative restrictions on CMS verification.
Mandatory CRLs disabled at the moment as I'm not generating them yet.
svn path=/rpkid/rpki/exceptions.py; revision=1727
Diffstat (limited to 'rpkid/rpki/exceptions.py')
-rw-r--r-- | rpkid/rpki/exceptions.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rpkid/rpki/exceptions.py b/rpkid/rpki/exceptions.py index a80ab0e5..8bde9cde 100644 --- a/rpkid/rpki/exceptions.py +++ b/rpkid/rpki/exceptions.py @@ -99,3 +99,15 @@ class WrongEContentType(RPKI_Exception): class EmptyPEM(RPKI_Exception): """Couldn't find PEM block to convert.""" + +class UnexpectedCMSCerts(RPKI_Exception): + """Received CMS certs when not expecting any.""" + +class UnexpectedCMSCRLs(RPKI_Exception): + """Received CMS CRLs when not expecting any.""" + +class MissingCMSEEcert(RPKI_Exception): + """Didn't receive CMS EE cert when expecting one.""" + +class MissingCMSCRL(RPKI_Exception): + """Didn't receive CMS CRL when expecting one.""" |