Visual Studio help

2008-09-02 Thread Scott . Hill
I know that all mailing lists cringe when newbies post.  But I'm in a real 
bind and so at the risk of putting myself in that category, I have some 
basic questions.

I am using VS 2003 to maintain several MFC applications.  These apps 
communicate with a web service that recently moved to https://  So I 
am trying to get open ssl into my code.  I have downloaded a binary 
distribution of the win32 (0.9.8h) and installed it.  I have also put open 
ssl function calls into my code.  It compiles OK, but I get "unresolved 
external" errors.  I have the compiler configured to "Use MFC in a shared 
DLL".  Does anyone have any information that will help me get this thing 
linked so I can begin learning more about SSL as I attempt to communicate 
with my web service?

Thanks,

Scott Hill
Flying J, Inc.
 
Food for thought:
A good pun is it's own reword.
Energizer bunny arrested! Charged with battery!
A pessimist's blood type is always B-negative.
42.7 percent of all statistics are made up on the spot.
How much deeper would the ocean be without sponges?
Atheism is a non-prophet organization.


compiling openssl using vs 2003

2008-08-24 Thread Scott Hill
I'm trying to compile openssl for use with visual studio.  For some reason,
I can't run the nmake in the vs ide.  When I try it from the command line,
it says it can't find things like windows.h!  Does anyone have it already
compiled, etc that I can download?

-- 
Scott Hill

Food for thought:
A good pun is it's own reword.
Energizer bunny arrested! Charged with battery!
A pessimist's blood type is always B-negative.
42.7 percent of all statistics are made up on the spot.
How much deeper would the ocean be without sponges?
Atheism is a non-prophet organization.


re: Help with Win32

2001-01-04 Thread Scott Hill
Title: 





BTW, I noticed that ssl.h was in the include\openssl directory (which wasn't picked up by the Makefile.PL script), so I modified the Makefile.PL script to force it to use openssl\ssl.h. It gets farther, but hates it anyway. Help! :(

--Scott



BUILD INFORMATION



ssl dir:    d:\cygwin\home\administrator\openssl-0.9.6
libraries:  -lssleay32 -llibeay32 -lRSAglue -lrsaref
include dir:    d:\cygwin\home\administrator\openssl-0.9.6\include -Id:\cygwin\home\administrator\openssl-0.9.6\inc32
ssl header: openssl\ssl.h





Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for '-lrsaref'
Writing Makefile for Crypt::SSLeay


D:\cygwin\home\administrator\Crypt-SSLeay-0.18>nmake


Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.


mkdir blib
mkdir blib\lib
mkdir blib\lib\Crypt
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\Crypt
mkdir blib\arch\auto\Crypt\SSLeay
mkdir blib\lib\auto
mkdir blib\lib\auto\Crypt
mkdir blib\lib\auto\Crypt\SSLeay
cp lib/Net/SSL.pm blib\lib\Net\SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib\lib\Crypt\SSLeay\MainContext.pm
cp lib/Crypt/SSLeay/CTX.pm blib\lib\Crypt\SSLeay\CTX.pm
cp SSLeay.pm blib\lib\Crypt\SSLeay.pm
cp lib/Crypt/SSLeay/Conn.pm blib\lib\Crypt\SSLeay\Conn.pm
cp lib/Crypt/SSLeay/Err.pm blib\lib\Crypt\SSLeay\Err.pm
cp lib/Crypt/SSLeay/X509.pm blib\lib\Crypt\SSLeay\X509.pm
    C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\ExtUtils/xsubpp  -typemap C:\Perl\lib\ExtUtils\type

map -typemap typemap SSLeay.xs > SSLeay.xsc && C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e m

v SSLeay.xsc SSLeay.c
    cl -c -Id:\cygwin\home\administrator\openssl-0.9.6\include -Id:\cygwin\home\administrator\openssl-0.9.6\inc32 -O

1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCR

T_READFIX -O1 -MD -DNDEBUG  -DVERSION=\"0.18\"  -DXS_VERSION=\"0.18\"  -IC:\Perl\lib\CORE  SSLeay.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.


SSLeay.c
d:\cygwin\home\administrator\openssl-0.9.6\include\openssl\ssl.h(1) : error C2059: syntax error : '!'
SSLeay.c(122) : error C2065: 'SSL_CTX' : undeclared identifier
SSLeay.c(122) : error C2065: 'RETVAL' : undeclared identifier
SSLeay.c(122) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(165) : error C2065: 'ctx' : undeclared identifier
SSLeay.c(165) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(169) : error C2059: syntax error : ')'
SSLeay.c(185) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(186) : error C2143: syntax error : missing ';' before 'type'
SSLeay.c(187) : error C2143: syntax error : missing ';' before 'type'
SSLeay.c(188) : error C2275: 'SV' : illegal use of this type as an expression
    C:\Perl\lib\CORE\perl.h(1404) : see declaration of 'SV'
SSLeay.c(188) : error C2065: 'targ' : undeclared identifier
SSLeay.c(192) : error C2059: syntax error : ')'
SSLeay.c(197) : error C2065: 'ciphers' : undeclared identifier
SSLeay.c(198) : warning C4047: 'function' : 'struct sv *' differs in levels of indirection from 'int '
SSLeay.c(198) : warning C4024: 'Perl_sv_setiv' : different types for formal and actual parameter 2
SSLeay.c(198) : error C2223: left of '->sv_flags' must point to struct/union
SSLeay.c(198) : warning C4047: 'function' : 'struct sv *' differs in levels of indirection from 'int '
SSLeay.c(198) : warning C4024: 'Perl_mg_set' : different types for formal and actual parameter 2
SSLeay.c(198) : warning C4047: '=' : 'struct sv *' differs in levels of indirection from 'int '
SSLeay.c(210) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(211) : error C2065: 'SSL' : undeclared identifier
SSLeay.c(211) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(215) : error C2059: syntax error : ')'
SSLeay.c(246) : error C2065: 'ssl' : undeclared identifier
SSLeay.c(246) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(250) : error C2059: syntax error : ')'
SSLeay.c(266) : warning C4552: '*' : operator has no effect; expected operator with side-effect
SSLeay.c(267) : error C2143: syntax error : missing ';' before 'type'
SSLeay.c(268) : error C2143: syntax error : missing ';' before 'type'
SSLeay.c(269) : error C2275: 'SV' : illegal use of this type as an expression
    C:\Perl\lib\CORE\perl.h(1404) : see declaration of 'SV'
SSLeay.c(273) : error C2059: syntax error : ')'
SSLeay.c(278) : error C2065: 'fd' : undeclared identifier
SSLeay.c(