Thanks so mucht for this information! I had to make the folowing changes as well: Set the Compile with common language runtime to: No common language runtime support for each .h file If I do that, the error: Command line error D8045: cannot compile C file 'src\client.c' with the /clr option disappears
(Next I got an error in the resouce.rc file with the LTEXT VERSION... So I // that out)
Next I get about 121 errors, like: Error LNK2001: unresolved external symbol _main ... symbol _num_clients etc.
Any ideas?
Kind regards,
Reinier
________________________________
From: DMILE525 [mailto:dmile525@gmail.com] Sent: donderdag 13 november 2008 23:23 To: Reinier van der Gugten Subject: Re: [stunnel-users] Help - Getting stunnel compiled on windows and using a patch
on Windows: install Win32 OpenSSL http://www.slproweb.com/products/Win32OpenSSL.html wlmailhtml:{86BCE398-B6B8-40AD-8A3D-BE759753A203}mid://00000009/!x-usc: http://www.slproweb.com/products/Win32OpenSSL.html install VS2008 (I'm using free VS2008 C++ Express Edition http://www.microsoft.com/express/download/ wlmailhtml:{86BCE398-B6B8-40AD-8A3D-BE759753A203}mid://00000009/!x-usc: http://www.microsoft.com/express/download/ )
The first thing to do (assuming a default installation of 'C:\OpenSSL') is to go to 'C:\OpenSSL\lib\VC' and copy all of the files to your Visual C++ 'lib' directory. This directory is sometimes located in a somewhat cryptic location such as 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib' or 'C:\Program Files\Microsoft Visual Studio 9.0\VC\lib'.
Next, copy everything in the 'C:\OpenSSL\include' directory to your Visual C++ 'include' directory.
create new empty project add to project: stunnel.c ssl.c ctx.c verify.c file.c client.c protocol.c sthreads.c log.c options.c network.c resolver.c gui.c common.h prototypes.h resources.h stunnel.ico resources.rc
"Configuration properties -> Linker -> input -> additional properties" add wsock32.lib ssleay32.lib libeay32.lib "Configuration properties -> General -> character set" set "Use Multi-Byte Character Set"
in common.h after
#ifndef COMMON_H #define COMMON_H
add
#define USE_WIN32
#define _CRT_SECURE_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE //#define HAVE_GETADDRINFO //#define HAVE_GETNAMEINFO #ifndef _MBCS #define _MBCS #endif
#define VERSION "4.26"
#if defined _M_IX86 #pragma comment(linker, "/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'"") #elif defined _M_IA64 #pragma comment(linker, "/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'"") #elif defined _M_X64 #pragma comment(linker, "/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'"") #else #pragma comment(linker, "/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"") #endif
On Wed, Nov 12, 2008 at 6:50 PM, Reinier van der Gugten info@rgit.eu wrote:
Hello, I am trying to compile STunnel. I'd rather not, but the pre-compiled version does not support a proxy server. So I hop you will be able to help me, or point me to a good howto on how to compile stunnel using windows and a patch from the patch-list. Or does someone have a compiled (windows) version with proxy support? If so, please mail it to me. Or tell me where to find more detailed information pls. - Next thing I will try is to install linux on a computer in order to try it that way... Greetings, Reinier.
_______________________________________________ stunnel-users mailing list stunnel-users@mirt.net http://stunnel.mirt.net/mailman/listinfo/stunnel-users
Hi STunnel users!
Has someone got a working version of STunnel that can handle a proxy?
I was hoping to use one of the patches (verion 4.05) that say they can use proxy, but beleave me or not, I was unable to compile the 4.05 version (the latest version compiles fine, thanks to dmile525). And I also tried to merge the patch with the source files, but that failed as well.
So my question is, has anyone got a working STunnel with proxy support (preferably a recent version)? If so, I would be very greatful and would even be willing to pay him a bit of money for it. I need it to run under windows.
Please let me know what the options are.
Reinier.
On Fri, 14 Nov 2008 14:53:20 +0100, "Reinier van der Gugten" info@rgit.eu wrote:
Has someone got a working version of STunnel that can handle a proxy?
Do you mean client mode CONNECT protocol support (RFC 2817 section 5.2)? http://www.ietf.org/rfc/rfc2817.txt It's supported in stunnel since version 4.15 (released 2006.03.11).
Best regards, Mike