Hi Aleksey,Here is a small patch which extends xmlSecTmplSignatureCreate to include support for adding a namespace prefix on the Signature element. This feature is useful in cases where the default namespace is defined elsewhere in the document, in enveloping signatures and in other more pathological interoperability situations. This feature has been requested and discussed on this list before.
In order to preserve backward compatibility, I've added a new function called xmlSecTmplSignatureCreateNsPref which xmlSecTmplSignatureCreate calls with a null namespace prefix. The only other changes are the use of xmlSearchNsByHref instead of xmlSearchNs in a few functions in xmltree.c (xmlSecAddChild, xmlSecAddNextSibling, xmlSecAddPrevSibling).
Thanks, Barry Ferg
nspref.diff.gz
Description: GNU Zip compressed data
_______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
