<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Michal,<br>
Your fix and mine are cumulative :<br>
it is allowed to specify "0" for stacksize in _beginthread, in which
case the spec says that the actual stacksize<br>
will default to that of the calling thread.<br>
Presently such a 0 will lead CreateThread and _begithread to fail.<br>
My patch will lead to have as "default" the /STACK option value of the
linker, ie 1MB with wce compiler if /STACK unspecified.<br>
It would be uselessly luxuous to modify _beginthread to "really" get
the calling thread stack size as default.<br>
<br>
Then, gui.c, or anyother caller, will be "free" to call _beginthread
with 0 as stacksize or not.<br>
This is the subject of your patch.<br>
<br>
Apart from that my soon global patch will only fix "compilation
issues", not execution issues.<br>
In general, after the 4.27 refresh and the unicode bug last year I will
stay focused on unicode/ascii support and<br>
compilation issues on WCE, and I will deal with "operational" code only
when encountering a bug.<br>
My present aim being to offer a port of stunnel for WCE, without
touching the core cryptographic code,<br>
something I prefer to let to ssl specialists<br>
<br>
See you soon with my patch,<br>
Pierre<br>
<br>
Le 26/09/2010 19:25, Michal Trojnara a écrit :
<blockquote cite="mid:3051BF1E-3FF6-48A3-9A5A-20B7324D72F0@mirt.net"
 type="cite">
  <div>
  <div>Pierre DELAAGE wrote:</div>
  <blockquote type="cite">
    <div bgcolor="#ffffff" text="#000000"><font
 face="Times New Roman, Times, serif">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>
    </font></div>
  </blockquote>
  <div><br>
  </div>
  <div>Thank you.  I appreciate your public domain patch sent 10 Jan
2009.</div>
  <br>
  <blockquote type="cite">
    <div bgcolor="#ffffff" text="#000000"><span class="Apple-style-span"
 style="font-family: 'Times New Roman',Times,serif;">the bug is in
sthread.c: </span></div>
  </blockquote>
  <blockquote type="cite">
    <div bgcolor="#ffffff" text="#000000"><font
 face="Times New Roman, Times, serif"> the wince _beginthread port has
been modified</font></div>
  </blockquote>
  <div><br>
  </div>
  <div>You're right.  I obviously made a mistake here.  Thank you.</div>
  <div><br>
  </div>
  <div>In gui.c:</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>_beginthread(ThreadFunc,
0, NULL);</div>
  <div>should be:</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>_beginthread(ThreadFunc,
DEFAULT_STACK_SIZE, NULL);</div>
  <div><br>
  </div>
  <blockquote type="cite">
    <div bgcolor="#ffffff" text="#000000"><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>
    </font></div>
  </blockquote>
  <div><br>
  </div>
  <div>I prefer individual patches for separate issues rather than a
single, large patch.</div>
  <div><br>
  </div>
  <div>I also tend to rewrite code anyway rather than simply apply
patches.  It might be better if you just describe problems instead of
sending the code.</div>
  <div><br>
  </div>
  <blockquote type="cite">
    <div bgcolor="#ffffff" text="#000000"><font
 face="Times New Roman, Times, serif"> 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>
    </font></div>
  </blockquote>
  <div><br>
  </div>
  <div>It would be great to have a patch to build OpenSSL with
arm-cegcc.  8-)</div>
  <br>
  </div>
  <div>Best regards,</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>Mike</div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
stunnel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:stunnel-users@mirt.net">stunnel-users@mirt.net</a>
<a class="moz-txt-link-freetext" href="http://stunnel.mirt.net/mailman/listinfo/stunnel-users">http://stunnel.mirt.net/mailman/listinfo/stunnel-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>