python-pskc branch master updated. 1.2-2-gacc6d78
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-pskc branch master updated. 1.2-2-gacc6d78
- From: Commits of the python-pskc project <python-pskc-commits [at] lists.arthurdejong.org>
- To: python-pskc-commits [at] lists.arthurdejong.org
- Reply-to: python-pskc-users [at] lists.arthurdejong.org, python-pskc-commits [at] lists.arthurdejong.org
- Subject: python-pskc branch master updated. 1.2-2-gacc6d78
- Date: Sat, 3 Dec 2022 13:59:11 +0100 (CET)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".
The branch, master has been updated
via acc6d784d3cf808dc79516aeb720a05b900d2035 (commit)
from 99422c04c5d92000dd5328834b57a5c5c5eae3ef (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=acc6d784d3cf808dc79516aeb720a05b900d2035
commit acc6d784d3cf808dc79516aeb720a05b900d2035
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sat Dec 3 13:40:18 2022 +0100
Support newer versions of signxml
Version 3.0.0 of signxml dropped the default_c14n_algorithm property
from XMLSignatureProcessor.
diff --git a/pskc/signature.py b/pskc/signature.py
index 90c946b..b6f8454 100644
--- a/pskc/signature.py
+++ b/pskc/signature.py
@@ -38,7 +38,8 @@ def sign_x509(xml, key, certificate, algorithm=None,
digest_algorithm=None,
digest_algorithm = digest_algorithm or 'sha256'
canonicalization_method = (
canonicalization_method or
- signxml.XMLSignatureProcessor.default_c14n_algorithm)
+ getattr(signxml.XMLSignatureProcessor, 'default_c14n_algorithm', None)
or
+ 'http://www.w3.org/2006/12/xml-c14n11')
return signxml.XMLSigner(
method=signxml.methods.enveloped,
signature_algorithm=algorithm.rsplit('#', 1)[-1].lower(),
-----------------------------------------------------------------------
Summary of changes:
pskc/signature.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
python-pskc
- python-pskc branch master updated. 1.2-2-gacc6d78,
Commits of the python-pskc project