openssl: compile problem in current trunk

Hi guys,

in the current trunk version I get a compile error in pkcs7.h file saying:

openssl/pkcs7.h:38:5: error: expected ')' before numeric constant
     X509_NAME *issuer;
     ^

This happens with gcc and also with VS.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 44 (22 by maintainers)

Commits related to this issue

Most upvoted comments

This should now be fixed, but was implemented in a different way. After some internal debate it was decided that including windows.h in our public header files was probably a bad idea. Apps developers may want more control over when windows.h is included (or even if it is included at all). Therefore we have removed windows.h from all our public headers altogether (in 1.1.0). This does have some knock on impacts - notably that if you want to use any of the CRYPTO_THREAD_* functions or you want to use any of the async.h functions that use the OSSL_ASYNC_FD type then you should include windows.h before any openssl headers.

Closing this ticket.

Sounds great! Please let me know when it is available.

In the header file ossl_typ.h I made the change

#ifndef HEADER_OPENSSL_TYPES_H
# define HEADER_OPENSSL_TYPES_H

#include <limits.h>

#ifdef  __cplusplus
extern "C" {
#endif

# include <openssl/e_os2.h>

# include <windows.h>

and this will fix the issue.

You mean you use mingw/msys? Please provide your Configure line.

Try adding –DOPENSSL_SYS_WIN32 to the configure line and see if that works. Normally the flag is set only when using VC.