[stunnel-users] stunnel beta (5.04b1) is available for testing

Pierre DELAAGE delaage.pierre at free.fr
Wed Sep 17 20:20:49 CEST 2014

Dear Michal,
It appears that 5.04b1 is not UNICODE compatible.

Anyway, the first compilation issue reproduced below is not new...and 
you will find the proper code to fix it
in my 502 complete, and extensively documented, patch.

I think it can help that I send you my complete 502 source tree, which 
will make easier for you to read the "patched" code in a coherent bunch 
of files,
instead of damaging your eyes in reading an obscure text patch file with 
diff/ed instructions.
I will send it soon directly to you.

I understand that my patch is big, this is why I splitted it in two main 
parts : unicode for w32 on one side (that was a separate patch), then 
WCE support on another side (provided in two forms : one cumulating with 
the first patch, the other incremental).
But for each big subject, to get a consistent application vs compilation 
and/or runtime, many little modifications (except the two big functions 
isolated in wcedefs.h/.c)
MUST be fixed and put together in the same code.
What is the interest of an incomplete patch that leaves the application 
UN-compilable and/or UN-runnable and so ...UN-testable ? none

To document the TWO big patches, my v502 report is written in little 
chapters, one issue after the other, describing the bug and the fix 

I will not redo all that job extensively here, there will be nothing new.

Hope anyway it will help.

I would mention also that your vc.mak is not allowing any possibility to 
compile with UNICODE support :
this is the first thing to do, and once again you will find the proper 
fix in my 502 patch.

         cl /MD /W3 /O2 /nologo  /WX /DUNICODE -D_UNICODE 
c32" -Fo..\obj\win32\ui_win_gui.obj -c ..\src\ui_win_gui.c
..\src\ui_win_gui.c(177) : error C2220: avertissement consid'r' comme 
une erreur
  - aucun fichier 'object' g'n'r'
..\src\ui_win_gui.c(177) : warning C4133: 'fonction' : types 
incompatibles - de
'char [260]' à 'LPWCH'
..\src\ui_win_gui.c(194) : warning C4133: 'fonction' : types 
incompatibles - de
'char [260]' à 'LPCWSTR'
..\src\ui_win_gui.c(210) : warning C4133: 'fonction' : types 
incompatibles - de
..\src\ui_win_gui.c(241) : warning C4133: 'fonction' : types 
incompatibles - de
'char [260]' à 'LPWSTR'
..\src\ui_win_gui.c(1168) : warning C4028: paramètre formel 1 différent 
de la dé
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
\cl.EXE"' : code retour '0x2'

Yours sincerely

Le 16/09/2014 18:16, Michal Trojnara a écrit :
> Hash: SHA1
> Hi Guys,
> Please feel free to try the beta version I just made available for
> download:
> https://www.stunnel.org/downloads/beta/stunnel-5.04b1.tar.gz
> https://www.stunnel.org/downloads/beta/stunnel-5.04b1-installer.exe
> The list of changes includes most of the issues recently discussed on
> the stunnel-users mailing list and more.
> * New features
>    - Support for local mode ("exec" option) on Win32.
>    - A more explicit service description provided for the Windows SCM
>      (thx to Pierre Delaage).
>    - TCP/IP dependency added for NT service in order to (hopefully)
>      prevent initialization failure at boot time.
>    - FIPS canister updated to version 2.0.8 in the Win32 binary build.
> * Bugfixes
>    - load_icon_default() modified to return copies of default icons
>      instead of the original resources to prevent the resources from
>      being destroyed.
>    - Reportedly more compatible values used for the dwDesiredAccess
>      parameter of the CreateFile() function (thx to Pierre Delaage).
>    - Partially merged UNICODE compilation fixes (thx to Pierre Delaage).
>    - Partially merged Windows CE patches (thx to Pierre Delaage).
>    - Fixed typos in stunnel.init.in and vc.mak.
>    - Fixed incorrect memory allocation statistics update in
>      str_realloc().
>    - Missing REMOTE_PORT environmental variable is provided to processes
>      spawned with "exec" on Unix platforms.
>    - Taskbar icon is no longer disabled for NT service.
> Some basic examples for local mode ("exec" option) on Windows:
> ; Service based on a command-line tool
> [netstat]
> accept = 8015
> exec = c:\windows\system32\netstat.exe
> execargs = netstat -a
> ; Remote cmd.exe protected with SSL
> ; Certificate-based authentication needs to be configured here!
> [cmd]
> accept = 1337
> exec = c:\windows\system32\cmd.exe
> Mike
> Version: GnuPG v1
> zUEAoNUrIp0KAJ4+0LPwx+/1lJG6q2q/
> =aSXM
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

More information about the stunnel-users mailing list