<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Times New Roman, Times, serif">Hello Michal,<br>
Maybe you remember me, I am the man that refreshed stunnel for winCE up
to 4.27 version.<br>
Thank you for having included my code to your mainstream at that time.<br>
As a win32 regular programmer I always check that my code is as close
as possible as that of the main win32 stream for PC.<br>
<br>
I am writing you today to point out a critical bug that prevent stunnel
4.34  from servicing any service at all .<br>
<br>
I have fixed that bug and will send you a refresh of all the sources
(that needed some after some win32 PC version updates) soon. <br>
<br>
SO DO NOT DO ANYTHING.<br>
<br>
the bug is in sthread.c: <br>
the wince _beginthread port has been modified (by someone else but me)
as this :<br>
<br>
v434:<br>
handle=CreateThread(NULL, stack_size,<br>
        (LPTHREAD_START_ROUTINE)start_address, arglist,<br>
        STACK_SIZE_PARAM_IS_A_RESERVATION, &thread_id);<br>
<br>
the "</font><font face="Times New Roman, Times, serif">STACK_SIZE_PARAM_IS_A_RESERVATION"
flag is the novelty from 4.27.<br>
The problem is that beginthread is being called from gui.c with
stacksize=0 <br>
SO THAT a stack of 0 size "TRIES to be  RESERVED" and then </font><font
 face="Times New Roman, Times, serif">CreateThread </font><font
 face="Times New Roman, Times, serif">FAILS to return a valid handle.<br>
<br>
That is to say that no thread is created, and thus NO TUNNELING SERVICE
at all can be delivered.<br>
So stunnel cannot work at all.<br>
<br>
</font><font face="Times New Roman, Times, serif">Solution : the proper
call is :<br>
<br>
handle=CreateThread(NULL, stack_size,<br>
        (LPTHREAD_START_ROUTINE)start_address, arglist,<br>
        (stack_size > 0) ? STACK_SIZE_PARAM_IS_A_RESERVATION:0,
&thread_id);<br>
</font><br>
<font face="Times New Roman, Times, serif">I repeat and insist : please
DO NOT DO anything to the code, as I will send soon a refresh with
various other updates (because apart from that critical bug,<br>
the code needs other refresh to compile properly),<br>
and as I am also working on a refresh of openssl up to 1.0.0a (those
gentlemen at openssl never included any wce patch to their mainstream,<br>
which is really a pity, but another story).<br>
<br>
See you soon,<br>
Thank you again for all the work you do for the community of people,<br>
<br>
Pierre <br>
<br>
<br>
</font>
</body>
</html>