Hi Aleksey,<div><br></div><div>After figuring out the compilation problem related to xmlsec on windows. And the application is not crashing anymore.</div><div>I am using the same version of xmlsec on Windows and Linux and after some analysis from my side I am finding the following thing on Windows:-</div>
<div><br></div><div>Inside the function</div><div>xmlSecDSigCtxProcessKeyInfoNode ( in file xmldsig.c )</div><div><br></div><div>The statement is not setting the values as expected </div><div>dsigCtx->signKey = (dsigCtx->keyInfoReadCtx.keysMngr->getKey)(node, &(dsigCtx->keyInfoReadCtx));</div>
<div><br></div><div>But in Linux the same line the value of dsigCtx->signKey is setting properly and in windows after execution of this statement the value of dsigCtx->signKey still remains NULL.</div><div><br></div>
<div>Please provide some views from your side and will help me a lot.</div><div><br></div><div>Regards,</div><div>Rahul.</div><div><br><br><div class="gmail_quote">On Sun, May 23, 2010 at 10:43 AM, Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You obviously have a problem with compiling the library. You need<br>
to make sure you use the same compiler/linker and same target for<br>
all your libraries.<br>
<br>
Aleksey<div class="im"><br>
<br>
On 5/22/2010 9:55 PM, rahul kumar wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Aleksey,<br>
<br><div class="im">
Thanks for your quick response. I have gone through the link provided by<br>
you.<br>
Just to add further.<br>
<br>
There is a difference between the linking of the application xmlsec.exe<br>
provided in the site and my application<br>
(i) Application xmlsec.exe is not linked to libxmlsec-openssl.dll but my<br>
application is not linked<br>
<br>
And after doing some analysis I found that the libxmlsec-openssl.dll is<br>
internally calling c:\windows\system32\LIBEAY32.DLL ( I have installed<br>
OpenSSL light) and inside the c:\windows\system32\LIBEAY32.DLL the<br>
application crashes at function OSSL_libdes_version.<br>
<br>
Please provide your views.<br>
<br>
Regards,<br>
Rahul.<br>
<br>
<br>
On Sun, May 23, 2010 at 8:40 AM, Aleksey Sanin <<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>>> wrote:<br>
<br>
Take a look at section 2.7 from the FAQ<br>
<br>
<a href="https://www.aleksey.com/xmlsec/faq.html" target="_blank">https://www.aleksey.com/xmlsec/faq.html</a><br>
<br>
Aleksey<br>
<br>
<br>
On 5/22/2010 7:44 PM, rahul kumar wrote:<br>
<br>
Hi Aleksey,<br>
<br>
I am using xmlsec API on windows XP ( 32 bit) and once I use try to<br>
verify the my license file from my written application it crashes<br>
<br>
"<br>
<br>
I have compiled the xmlsec1-1.2.12 ( also tried by downloading the<br>
xmlsec1-1.2.13)on windows and my application crashes when call the<br>
function xmlSecDSigCtxVerify.<br>
<br>
I am using the same version of XMLSEC on my Linux environment<br>
and it is<br>
working fine. I am using openssl 1.0.0 version ( Openssl Lite on<br>
Windows).<br>
<br>
After my analysis I found that the application crashes in function<br>
xmlSecTransformC14NPushXml ( In file c14n.c) where it calls the<br>
function<br>
xmlOutputBufferClose(buf), if I comment this function then the<br>
operation<br>
fails but the application doesnt crash.<br>
<br>
"<br>
<br>
But when I try to verify my license file using the application<br>
provided<br>
along with xmlsec library for windows it works fine. The libxml2 and<br>
openSSL libraries are same in both the scenario.<br>
<br>
It will be great help if you can guide me how the application<br>
provided<br>
with xmlsex ( i.e. xmlsec.exe ) is compiled.<br>
<br>
Regards,<br>
<br>
Rahul.<br>
<br>
<br>
<br>
_______________________________________________<br>
xmlsec mailing list<br></div></div>
<a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a> <mailto:<a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a>><div class="im"><br>
<a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">http://www.aleksey.com/mailman/listinfo/xmlsec</a><br>
<br>
<br>
</div></blockquote>
</blockquote></div><br></div>