diff options
author | Rob Austein <sra@hactrn.net> | 2008-04-22 21:28:56 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-04-22 21:28:56 +0000 |
commit | 759fffab10615ea55f354354aba4e1666f532409 (patch) | |
tree | a43be050400ff682c10697aee42d9021c8a4ed1a /rpkid | |
parent | 4d8602a0b807855e60a8155d6a8ec3f70bd2eb78 (diff) |
Use new CMS.sign() API
svn path=/rpkid/rpki/x509.py; revision=1694
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/x509.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index 7879f16c..a74fc429 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -662,16 +662,17 @@ class CMS_object(DER_object): self.decode(content) return self.get_content() - def sign(self, keypair, certs, no_certs = False): + def sign(self, keypair, certs, crls = None, no_certs = False): """Sign and wrap inner content.""" cms = POW.CMS() cms.sign(certs[0].get_POW(), keypair.get_POW(), - [x.get_POW() for x in certs[1:]], self.encode(), + [x.get_POW() for x in certs[1:]], + crls, self.econtent_oid, - no_certs) + POW.CMS_NOCERTS if no_certs else 0) self.DER = cms.derWrite() class DER_CMS_object(CMS_object): |