I have installed the "OpenSSL 0.9.3a" on WinNT4 succesfully.
and want to install the Net::SSLeay 1.05
I am using the VC6++ , Net::SSLeay requires lot of changes in
the header files and .xs file.
I have done following changes:
1) The ssl\include\bn.h file contains a bn_blinding_ststructure
definition with a "mod" member. Rename it to "modnum".
2) In the \usr\local\ssl\include\ssl.h file, a function declaration
used a argument
name of "list", which appears to be an MSVC reserved word, as this
generates a compiler error (under VC6 at least). Rename the argument to
"listref".
3) ssleay.xs - Conversion errors with regards to the
SSL_CTX_set_verify function.
Attempting to convert a (SV *) to a (void *) - This is easy tofix:
SSL_CTX_set_verify(ctx,mode,(int(*)(void))&ssleay_ctx_verify_callback_glue);
4) got the undefined error for RAND_seed(), RAND_xxx(), etc...:
Add: #include <rand.h> in ssleay.xs before "buffer.h"
5) changed the functions like
static int
not_here(s)
char *s;
{
..
..
}
To
static int
not_here(char *s)
{
..
..
}
in file SSLeay.xs
But now I run the nmake it gives the error:
cl.exe -c -Ic:/ssl/include -Od -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE
-DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_OBJECT -Od -MD -DNDEBUG -TP -GX
-DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -ID:\Perl\lib\CORE SSLeay.c
SSLeay.c
c:\ssl\inc32\openssl\rand.h(68) : error C2838: illegal qualified name in
member declaration
SSLeay.xs(1627) : error C2664: 'SSL_CTX_set_verify' : cannot convert
parameter 3 from 'int (__cdecl *)(void)' to 'int (__cdecl *)(int,struct
x509_store_state_st *)'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
SSLeay.c(2508) : error C2440: '=' : cannot convert from 'const char *' to
'char *'
Conversion loses qualifiers
SSLeay.c(2541) : error C2440: '=' : cannot convert from 'const char *' to
'char *'
Conversion loses qualifiers
Please help me to install it.
-Surat Singh Bhati
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]