LLBLGenPro's license-file using "SignatureProperties"

Posts   
 
    
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 28-Aug-2007 23:41:09   

Hi,

I'm generating a license file tool for our product, and I noticed that LLBLGenPro (2.0's) license file appears to put the product license data inside the "Signature" (as opposed to tacking the Signature section on the end of the signed xml data).

I found a link describing how to do this (http://blogs.msdn.com/shawnfa/archive/2005/11/03/488807.aspx).

But I haven't found anyone describe the advantage/disadvantage of doing this.

Any thoughts you can share?

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 29-Aug-2007 10:04:05   

In XML, elements have no ordering by definition. Some schemas tend to purscribe an ordering, but frankly, you shouldn't rely on it. So how the data is ordered in a signed xml file is IMHO not important.

We just sign the xml with the private part of a strong key, which is a well-documented procedure. Where the signature element is placed isn't what we tried to control, so I don't know if there's any advantage of having it at a given spot. If you want to read the license info, simply use an XPath to obtain the license element, or whatever element you have inside the xml simple_smile

Frans Bouma | Lead developer LLBLGen Pro
greenstone
User
Posts: 132
Joined: 20-Jun-2007
# Posted on: 29-Aug-2007 13:54:38   

Thanks for your thoughts!