From 12feb50d0494ebbf33cd18b4c8974eebf2e20158 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 1 Nov 2007 03:59:06 +0000 Subject: More dumb bugs svn path=/scripts/rpki/cms.py; revision=1224 --- scripts/rpki/cms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/rpki/cms.py') 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) -- cgit v1.2.3