[xmlsec] Compilation of XmlSec Application on Windows

Aleksey Sanin aleksey at aleksey.com
Tue May 25 07:44:50 PDT 2010


I am sorry I don't know. You have the debugger :)

Aleksey

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


More information about the xmlsec mailing list