-
I'm trying to verify some enveloped XML signatures with xmlsec in a Win32 application, but I struggle to do so. I created a test project (see my GitHub repo (tag "old-prebuilt-binaries")) from scratch and added the prebuilt binaries from here: https://www.zlatkovic.com/libxml.en.html All the examples (verify1-4) fail to verify successfully. In my application only the verify1 and 2 example are of interest, I think, so I created a test report here: For the verify1 example it seems that the canonical form could not be created. I could not figure out how to set the "dsigCtx->c14nMethod" pointer correctly. I already tried it with the MS-crypto and openssl version of the library, which didn't help. Do you have any hint for me what else I could do, to at least run the examples successfully? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
First, the Windows binaries on www.zlatkovic.com are very old. I would not recommend to use those. I always start from trying out the xmlsec1 command line utility:
I also just tried the examples/verify1.c example as-is without any modifications and worked as well:
Both of the above are using the latest released version on my Ubuntu (xmlsec 1.2.34 is a couple years old):
|
Beta Was this translation helpful? Give feedback.
-
BTW, just an idea: what you observe sounds like an issue with difference in memory layout between compiled libraries and your program. I am not really sure how these binaries were compiled. I would make sure that |
Beta Was this translation helpful? Give feedback.
First, the Windows binaries on www.zlatkovic.com are very old. I would not recommend to use those.
I always start from trying out the xmlsec1 command line utility:
I also just tried the examples/verify1.c example as-is without any modifications and worked as well:
Both of the above are using the latest released version on my Ubuntu (xmlsec 1.2.34 is a couple years old):