[xmlsec] namespace prefixes on Signature

John Crowley johncrowley at aol.com
Wed Feb 15 14:00:49 PST 2006

On Feb 15, 2006, at 4:46 PM, Aleksey Sanin wrote:

>> Second, the *easiest* patch for a namespace prefix is to create an  
>> xmlSecTmplSignatureCreateNs() function that has a prefix parameter  
>> and then have xmlSecTmplSignatureCreate() call that function with  
>> a NULL prefix value.  Some don't like that style though.  The only  
>> other alternative is to create a writable global string but that's  
>> a bit invasive too.
> Sounds like xmlSearchNs() => xmlSearchNsByHref() change should do it
> (assuming that user puts the namespace in the document by him/ 
> herself).
> Though providing this helper function might be a good idea.

I'm not sure one *can* insert the namespace without this function.   
I've not found anything in libxml2 that allows for manipulation of  
namespace after definition.

My read is that both the new function and search change are required  
to get prefixes attach to all the dsig elements.  Would it be over- 
engineering to create a new xmlSecAddChild() function to allow for  
the different search approach?

>> Lastly, a recent post mentioned you prefer patches based upon  
>> cvs.  I can't find mention of cvs on your site.
> Scroll to the bottom of this page :)
> http://www.aleksey.com/xmlsec/download.html

eh, I didn't check the download link ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20060215/83ff7c84/attachment-0002.htm

More information about the xmlsec mailing list