aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/cms.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rpki/cms.py')
-rw-r--r--scripts/rpki/cms.py4
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)