File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 6
6
__author__ = 'roland'
7
7
8
8
DIGEST_METHODS = {
9
- # "hmac-md5": 'http://www.w3.org/2001/04/xmldsig-more#md5', # test framework only!
9
+ "hmac-md5" : 'http://www.w3.org/2001/04/xmldsig-more#md5' , # test framework only!
10
10
"hmac-sha1" : 'http://www.w3.org/2000/09/xmldsig#sha1' ,
11
11
"hmac-sha224" : 'http://www.w3.org/2001/04/xmldsig-more#sha224' ,
12
12
"hmac-sha256" : 'http://www.w3.org/2001/04/xmlenc#sha256' ,
16
16
}
17
17
18
18
SIGNING_METHODS = {
19
- # "rsa-md5": 'http://www.w3.org/2001/04/xmldsig-more#rsa-md5',
19
+ "rsa-md5" : 'http://www.w3.org/2001/04/xmldsig-more#rsa-md5' ,
20
20
"rsa-ripemd160" : 'http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160' ,
21
21
"rsa-sha1" : 'http://www.w3.org/2000/09/xmldsig#rsa-sha1' ,
22
22
"rsa-sha224" : 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha224' ,
Original file line number Diff line number Diff line change 30
30
COMMON_ARGS = [
31
31
"debug" ,
32
32
"entityid" ,
33
+ "xmlsec_disabled_algs" ,
33
34
"xmlsec_binary" ,
34
35
"key_file" ,
35
36
"cert_file" ,
@@ -189,6 +190,7 @@ class Config(object):
189
190
def __init__ (self , homedir = "." ):
190
191
self ._homedir = homedir
191
192
self .entityid = None
193
+ self .xmlsec_disabled_algs = []
192
194
self .xmlsec_binary = None
193
195
self .xmlsec_path = []
194
196
self .debug = False
Original file line number Diff line number Diff line change @@ -735,6 +735,8 @@ def entity_descriptor(confd):
735
735
_add_attr_to_entity_attributes (entd .extensions , attr )
736
736
737
737
for item in algorithm_support_in_metadata (confd .xmlsec_binary ):
738
+ if item .algorithm in confd .__dict__ .get ('xmlsec_disabled_algs' ):
739
+ continue
738
740
if not entd .extensions :
739
741
entd .extensions = md .Extensions ()
740
742
entd .extensions .add_extension_element (item )
You can’t perform that action at this time.
0 commit comments