aboutsummaryrefslogtreecommitdiff
path: root/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-10-09 13:51:58 +0000
committerRob Austein <sra@hactrn.net>2015-10-09 13:51:58 +0000
commit122d0b33982d94f8a6c96356462a2d6fa062d948 (patch)
tree1f142c63f575448d41c1548f5ae27813f55f3c54 /rpki/x509.py
parent421546d23d86434190caa9bb301e5cb7e96d4889 (diff)
Baby steps towards using new rpkidb models. Now that SAX is gone,
clean up some of the corresponding mess. svn path=/branches/tk705/; revision=6105
Diffstat (limited to 'rpki/x509.py')
-rw-r--r--rpki/x509.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/rpki/x509.py b/rpki/x509.py
index 34cf6726..40244e4d 100644
--- a/rpki/x509.py
+++ b/rpki/x509.py
@@ -1986,10 +1986,7 @@ class XML_CMS_object(Wrapped_CMS_object):
Wrap an XML PDU in CMS and return its DER encoding.
"""
- if self.saxify is None:
- self.set_content(msg)
- else:
- self.set_content(msg.toXML())
+ self.set_content(msg)
if self.check_outbound_schema:
self.schema_check()
self.sign(keypair, certs, crls)
@@ -2007,10 +2004,7 @@ class XML_CMS_object(Wrapped_CMS_object):
self.verify(ta)
if self.check_inbound_schema:
self.schema_check()
- if self.saxify is None:
- return self.get_content()
- else:
- return self.saxify(self.get_content()) # pylint: disable=E1102
+ return self.get_content()
def check_replay(self, timestamp, *context):
"""
@@ -2038,17 +2032,9 @@ class XML_CMS_object(Wrapped_CMS_object):
obj.last_cms_timestamp = self.check_replay(obj.last_cms_timestamp, *context)
obj.sql_mark_dirty()
- ## @var saxify
- # SAX handler hook. Subclasses can set this to a SAX handler, in
- # which case .unwrap() will call it and return the result.
- # Otherwise, .unwrap() just returns a verified element tree.
-
- saxify = None
-
class SignedReferral(XML_CMS_object):
encoding = "us-ascii"
schema = rpki.relaxng.myrpki
- saxify = None
class Ghostbuster(Wrapped_CMS_object):
"""