diff options
author | Rob Austein <sra@hactrn.net> | 2007-11-01 03:59:06 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-11-01 03:59:06 +0000 |
commit | 12feb50d0494ebbf33cd18b4c8974eebf2e20158 (patch) | |
tree | 1a31e3375a1d71448b23253bf48336e4cc8c4941 /scripts/rpki/cms.py | |
parent | dab64de7378853c3ab33dc7c14fd332228467541 (diff) |
More dumb bugs
svn path=/scripts/rpki/cms.py; revision=1224
Diffstat (limited to 'scripts/rpki/cms.py')
-rw-r--r-- | scripts/rpki/cms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/cms.py b/scripts/rpki/cms.py index 999e3197..6a061c67 100644 --- a/scripts/rpki/cms.py +++ b/scripts/rpki/cms.py @@ -86,7 +86,7 @@ def xml_verify(elt, ta): """Composite routine to verify CMS-wrapped XML.""" return lxml.etree.fromstring(verify(elt, ta)) -def xml_sign(elt, key, certs): +def xml_sign(elt, key, certs, encoding = "us-ascii"): """Composite routine to sign CMS-wrapped XML.""" - return sign(lxml.etree.tostring(elt, pretty_print=True, encoding="us-ascii", xml_declaration=True), + return sign(lxml.etree.tostring(elt, pretty_print = True, encoding = encoding, xml_declaration = True), key, certs) |