[xmlsec] Namespace prefixes on Signature

Barry Ferg barry at sxip.com
Fri Jul 14 10:41:19 PDT 2006


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nspref.diff.gz
Type: application/x-gzip
Size: 1231 bytes
Desc: not available
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20060714/fa67ab58/nspref.diff-0002.bin


More information about the xmlsec mailing list