On Tue, Apr 14, 2009, Atti wrote:

> First of all, I wanna apologize if I didn't reply correctly, I didn't
> receive any e-mail, and I have no idea how to do it properly.
> Second, sorry for not giving details, I saw the same error reported in one
> of the mailing lists. One of them is here:
> http://www.mail-archive.com/[email protected]/msg13342.html . It
> says the errors are caused by the redefinition of some structs, that are
> already defined in wincrypt.h, but these would be undefined if WIN32 is
> defined, which is, as i checked in my file.
> These are the errors I get:
> 
> error C2143: syntax error : missing ')' before 'constant'     209
> error C2143: syntax error : missing ';' before 'constant'     209
> error C2040: 'LPCSTR' : 'stack_st_X509_EXTENSION' differs in levels of
> indirection from 'const CHAR *'     209
> error C2059: syntax error : ')'    209
> error C2226: syntax error : unexpected type 'LPCSTR'    821
> error C2065: 'a' : undeclared identifier    821
> error C2062: type 'unsigned char' unexpected    821
> error C2226: syntax error : unexpected type 'LPCSTR'    821
> 

Those should be undefined if you include the OpenSSL headers *after* any Win32
headers. If you still get that I'd be interested in the order of headers you
use to still get that error.

The relevant part that should stop these issues is in ossl_typ.h

#ifdef OPENSSL_SYS_WIN32
#undef X509_NAME
#undef X509_EXTENSIONS
#undef X509_CERT_PAIR
#undef PKCS7_ISSUER_AND_SERIAL
#undef OCSP_REQUEST
#undef OCSP_RESPONSE
#endif

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to