I need to add SSL capability to an existing C++ socket client application. I've downloaded and installed OpenSSL, and the appropriate libs and includes are in my Visual Studio folder. Forgive the age of the dev environment (VC++ 6.0) but it's a legacy project, and only runs on Windows XP.
After adding this line:
// OpenSSL implementation for secure socket
#include <openssl/ssl.h>
To one of my header files, I now get this compile error:
c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : error C2143: syntax error : missing ')' before 'constant'
c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : fatal error C1004: unexpected end of file found
The line of the file causing the error is in rsa.h
int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
const EVP_MD *Hash, const unsigned char *EM, int sLen);
Any ideas what could be causing this error?
Thanks