@@ -738,7 +738,7 @@ def decrypt_element(encrypted_data, key, debug=False):
738738 elif isinstance (encrypted_data , basestring ):
739739 encrypted_data = fromstring (str (encrypted_data ))
740740
741- xmlsec .initialize ()
741+ # xmlsec.initialize() # Initialized at the start of the module
742742
743743 if debug :
744744 xmlsec .set_error_callback (print_xmlsec_errors )
@@ -813,7 +813,7 @@ def add_sign(xml, key, cert, debug=False, sign_algorithm=OneLogin_Saml2_Constant
813813 else :
814814 raise Exception ('Error parsing xml string' )
815815
816- xmlsec .initialize ()
816+ # xmlsec.initialize() # Initialized at the start of the module
817817
818818 if debug :
819819 xmlsec .set_error_callback (print_xmlsec_errors )
@@ -919,7 +919,7 @@ def validate_sign(xml, cert=None, fingerprint=None, fingerprintalg='sha1', valid
919919 else :
920920 raise Exception ('Error parsing xml string' )
921921
922- xmlsec .initialize ()
922+ # xmlsec.initialize() # Initialized at the start of the module
923923
924924 if debug :
925925 xmlsec .set_error_callback (print_xmlsec_errors )
@@ -985,7 +985,7 @@ def validate_metadata_sign(xml, cert=None, fingerprint=None, fingerprintalg='sha
985985 else :
986986 raise Exception ('Error parsing xml string' )
987987
988- xmlsec .initialize ()
988+ # xmlsec.initialize() # Initialized at the start of the module
989989
990990 if debug :
991991 xmlsec .set_error_callback (print_xmlsec_errors )
@@ -1038,7 +1038,7 @@ def validate_node_sign(signature_node, elem, cert=None, fingerprint=None, finger
10381038 :type: bool
10391039 """
10401040 try :
1041- xmlsec .initialize ()
1041+ # xmlsec.initialize() # Initialized at the start of the module
10421042
10431043 if debug :
10441044 xmlsec .set_error_callback (print_xmlsec_errors )
@@ -1103,7 +1103,7 @@ def validate_binary_sign(signed_query, signature, cert=None, algorithm=OneLogin_
11031103 :type: bool
11041104 """
11051105 try :
1106- xmlsec .initialize ()
1106+ # xmlsec.initialize() # Initialized at the start of the module
11071107
11081108 if debug :
11091109 xmlsec .set_error_callback (print_xmlsec_errors )
0 commit comments