[xmlsec] Cross-compiling for mscrypto

Dmitry Belyavsky beldmit at cryptocom.ru
Mon Dec 5 07:54:32 PST 2005


Greetings!

On Mon, 5 Dec 2005, Aleksey Sanin wrote:

> >
> > 1. How do I cross-compile xmlsec to use mscrypto on unix host using mingw?
> > ./configure --build=i686-pc-linux-gnu --host=i586-mingw32msvc
> > --with-mscrypto=yes
>
> Well, I don't believe you can do it. "./configure" script knows nothing
> about mscrypto at the moment (usual note: I do accept patches :) ).

If I have enough time, I should produce it. And I should produce again
patch for GOST cryptographic algorythms...

> > 2. I have problems linking libxmlsec on Win32 platform. I configure from
> > win32/ subdir with
> > cscript configure.js crypto=mscrypto and get a lot of errors beginning
> > with
> >
> > ..\include\xmlsec/mscrypto/app.h(48) : error C2146: syntax error : missing
> > ')' before identifier 'hKey'
> > ..\include\xmlsec/mscrypto/app.h(48) : error C2081: 'HCRYPTKEY' : name in
> > formal parameter list illegal
> > ..\include\xmlsec/mscrypto/app.h(48) : error C2061: syntax error :
> > identifier 'hKey'
> I believe the HCRYPTKEY handle is defined in wincrypt.h file.
> Thus you either don't have this file or it does not have this
> definition. You might want to get the latest and greatest version
> of MSSDK and make sure that INCLUDE paths are set correctly.

I've parially solved this problem defining _WIN32_WINNT to 0x0400 in
xmlsec/mscrypto/globals.h.

-- 
SY, Dmitry Belyavsky (ICQ UIN 11116575)




More information about the xmlsec mailing list