aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-10-11 01:04:47 +0000
committerRob Austein <sra@hactrn.net>2012-10-11 01:04:47 +0000
commite834772d3604c92479630c8b56094980db9ad7a3 (patch)
tree542664a4398dceba0a101871646c0f6d2297637e
parentb1e9a923e8f4361e9844f69111c10ad5d9ab91dc (diff)
Cleanup
svn path=/branches/tk274/; revision=4766
-rw-r--r--rpkid/rpki/x509.py24
1 files changed, 3 insertions, 21 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py
index e62ca52c..d5229a38 100644
--- a/rpkid/rpki/x509.py
+++ b/rpkid/rpki/x509.py
@@ -1495,30 +1495,12 @@ class Wrapped_CMS_object(CMS_object):
class DER_CMS_object(CMS_object):
"""
- Class to hold CMS objects with DER-based content.
+ Abstract class for CMS-based objects with DER-encoded content
+ handled by C-level subclasses of rpki.POW.CMS.
"""
def _sign(self, cert, keypair, certs, crls, flags):
- """
- Internal method to call POW to do CMS signature. This is split
- out from the .sign() API method to handle differences in how
- different CMS-based POW classes handle the inner content.
- """
-
- rpki.log.debug("DER_CMS_object._sign()")
- rpki.log.debug("self: %r" % self)
- rpki.log.debug("self.POW: %r" % self.get_POW())
- rpki.log.debug("cert: %r" % cert)
- rpki.log.debug("keypair: %r" % keypair)
- rpki.log.debug("certs, crls: %r, %r" % (certs, crls))
- rpki.log.debug("OID: %r" % (self.econtent_oid,))
- rpki.log.debug("flags: %r" % flags)
-
- try:
- self.get_POW().sign(cert, keypair, certs, crls, self.econtent_oid, flags)
- except Exception, e:
- rpki.log.debug("%r.sign() threw exception %s (%r)" % (self.get_POW(), e, e))
- raise
+ self.get_POW().sign(cert, keypair, certs, crls, self.econtent_oid, flags)
class SignedManifest(DER_CMS_object):