Wednesday, October 29, 2008

Compiling Rampart/C with openssl 0.9.8i

I am upgrading my httpd and openssl to httpd 2.2.10 and openssl 0.9.8i. After upgrading to new openssl, I got an error while compiling Rampart/C. After struggling to find the issue, I discovered that it actually a problem in openssl. And then I realised, I have already found this problem once upon a time, and helped a user. Too bad, my poor memory :).

So, how to solve the issue???

Add X509_EXTENSIONS to the value that are already being undefined for Windows in x509.h:

#ifdef OPENSSL_SYS_WIN32
/* Under Win32 these are defined in wincrypt.h */
#undef X509_NAME
#undef X509_CERT_PAIR
#undef X509_EXTENSIONS
#endif

0 comments: