Actually I did know that this error occur due to MinGW has predefined the macro OPENSSL_SYS_WIN32 ....... but I still can't get it to work even I appended -UOPENSSL_SYS_WIN32 to the gcc command line (via editing config file)
http://marc.info/?l=openssl-dev&m=123899368827954 btw basically the compiler shows the same problem as showing on the above link (the above email should be written by one of the openssl developers) e_capi.c: In function 'capi_get_pkey': e_capi.c:671:3: error: 'DSSPUBKEY' undeclared (first use in this function) e_capi.c:671:3: note: each undeclared identifier is reported only once for each function it appears in e_capi.c:671:14: error: 'dp' undeclared (first use in this function) e_capi.c:674:20: error: expected expression before ')' token e_capi.c:718:3: warning: format '%lx' expects type 'long unsigned int', but argu ment 4 has type 'ALG_ID' e_capi.c: In function 'capi_rsa_sign': e_capi.c:818:3: warning: format '%lx' expects type 'long unsigned int', but argu ment 4 has type 'int' e_capi.c: In function 'capi_rsa_priv_dec': e_capi.c:912:2: warning: passing argument 6 of 'CryptDecrypt' from incompatible pointer type c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincrypt.h:1209:23: no te: expected 'PDWORD' but argument is of type 'int *' e_capi.c: In function 'capi_get_provname': e_capi.c:1090:2: warning: implicit declaration of function 'CryptEnumProvidersA' ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
