<div dir="ltr">I suggest relating to OpenSSL as only one among the unlimited zillions of protocols out there,<div><br></div><div>and that by this reason, including OpenSSL support in Gambit is not the solution, but rather, to update Gambit's IO system to support implementation of non-leaky extremely-high-performance application/user-level ports.</div>

<div><br></div><div>Next in line are various compression and crypto protocols.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2013/12/18 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

There is no builtin support for SSL.  I have considered implementing this with OpenSSL or PolarSSL (which has the advantage of being lightweight and portable, see <a href="https://polarssl.org" target="_blank">https://polarssl.org</a>), but </blockquote>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">it is a non trivial job due to the complex API required for SSL.</blockquote>

<div><br></div><div>Yes. Also because OpenSSL is maintained by only one guy who gives part time to it, and its code is extremely bloated from its development process (this is what the experts on #crypto say anyhow).</div>

<div><br></div><div><br></div><div>Protocols and their support libraries are a complete jungle - for instance; I personally gave approximately one man month to implement an OpenSSL channel wrapper in Gambit. The whimsical documentation was on several key points indicative at best and inspiration from others' user code was required. The result is a very good integration, however at the same time,</div>

<div><br></div><div>Factors like this put an upper ceiling on what quality is actually possible to achieve for a particular integration/wrapper implementation, and this in turn means there will always be situations when a particular implementation is subqualitative and "in the way" and there is a palpable use of using some-other implementation, for someone to make his own new one, and so on.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  Moreover, this would add an external library dependency for Gambit (the only one), which is a problem for portability, so a configure option would likely be added to disable SSL support.<br>


<br>
If someone wants to tackle this (i.e. implementing builtin support for SSL), I can help with the integration with Gambit's I/O system.  It would sure be nice to be able to open secure connections with Gambit.<br>
<span class=""><font color="#888888"><br>
Marc</font></span></blockquote><div><br></div><div><br></div><div>I've pondered a bit how such an application/user-level ports interface would look.</div><div><br></div><div>To start with, a key decision would be if there should be support for something like zerocopying IO, i.e. you have a sandwhich of a number of such ports atop of each other and one or many of them is doing passive passthrough/forwarding only for N bytes/chars/seconds - will the IO system support that.</div>

<div><br></div><div>Perhaps that could be easily implemented if there's a convention that on such use, the user must not mutate the structures fed into the IO system any more.</div><div><br></div><div>This kind of design decisions could take a titanic-kind of direction though if carefully made and thought through it could be enormously useful also;</div>

<div><br></div><div>any code and modules relating to data streams, IO, and also data processing more generally, do at some point end up benefitting of having a qualitative interface with Gambit's IO system, through such an application/user-level ports interface.</div>

<div><br></div><div><br></div><div>I would be glad to participate in a conversation on the topic on how such a application/user-level ports interface ought to look more specifically.</div><div><br></div><div>Mikael</div>
<div>
<br></div><div><br></div><div><br></div></div></div></div>