I need to develop code which will sign, and verify, a XML message. Once its signed the signing has to be certifies with a 509 certificate. There seems to be a reasonably good amount of information on the web about doing all this in C# or Java which I can use for test purposes, but I need to develop my main code in 'C' and it has to be light weight and free from dll's.
I found one website www.aleksey.com which does have some code I could use, but it seems quite heavy and I needs something more stripped down and light weight.
I was using TinyXML to do the original XML parsing but that doesn't seem to have a signing part to it.

Would anyone be able to point me in the right direction or to the right website, any information I would be very greatful.