<html><body><p><font size="2">It would also be a good idea to test out this TLS library with the HTTP work that is being done right now.</font><br><br><br><img width="16" height="16" src="cid:1__=8FBB0BDEDFFC0C5B8f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Gelareh Taban via swift-server-dev ---06/28/2017 12:40:20 PM---Hi all, A quick update on TLS library "><font size="2" color="#424282">Gelareh Taban via swift-server-dev ---06/28/2017 12:40:20 PM---Hi all, A quick update on TLS library update.</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Gelareh Taban via swift-server-dev <swift-server-dev@swift.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">swift-server-dev@swift.org</font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">06/28/2017 12:40 PM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">[swift-server-dev] TLSService mini-release</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">swift-server-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="2">Hi all,</font><br><font size="2"><br>A quick update on TLS library update.</font><br><font size="2"><br>I have an implementation of the protocol proposed earlier: </font><a href="https://lists.swift.org/pipermail/swift-server-dev/Week-of-Mon-20170320/000298.html"><u><font size="2" color="#0000FF">https://lists.swift.org/pipermail/swift-server-dev/Week-of-Mon-20170320/000298.html</font></u></a><br><font size="2"><br>I have spoken with Tanner Nelson about this proposal and its integration into Vapor. This led to some discussion on an alternative protocol proposal that hopefully will be followed up on!</font><br><font size="2"><br>For now, I would like to throw this code out for public review. Please review below and let's look at what needs to get done.</font><br><font size="2"><br>The protocols are defined in:</font><u><font color="#0000FF"><br></font></u><a href="https://github.com/gtaban/security"><u><font size="2" color="#0000FF">https://github.com/gtaban/security</font></u></a><br><font size="2"><br>There are 2 protocols: Connection and TLSService.<br>- Connection abstracts away the connection protocol, eg socket and defines what we need from the connection end point.<br>- TLSService defines the TLS behavior.</font><br><font size="2"><br>The implementation of the TLSService protocol (using OpenSSL and SecureTransport) is:</font><u><font color="#0000FF"><br></font></u><a href="https://github.com/gtaban/TLSService"><u><font size="2" color="#0000FF">https://github.com/gtaban/TLSService</font></u></a><br><font size="2"><br>For tests, I needed a transport layer and since we are constrained by SPM's lack of test-only dependencies, I had to include the socket dependency. However this would have caused problems when people import TLSService so I created a Release branch, removed the socket dependency and tagged that at 0.0.1</font><br><font size="2"><br>The implementation of the Connection protocol using BlueSocket and Ckit is below:</font><u><font color="#0000FF"><br></font></u><a href="https://github.com/gtaban/BlueSocket"><u><font size="2" color="#0000FF">https://github.com/gtaban/BlueSocket</font></u></a><font size="2"> (TLSService branch)</font><u><font color="#0000FF"><br></font></u><a href="https://github.com/gtaban/CKit"><u><font size="2" color="#0000FF">https://github.com/gtaban/CKit</font></u></a><font size="2"> </font><br><font size="2"><br>Although right now I use BlueSocket for tests, I have Ckit more or less working as well and will integrate soon. Please open issues for any bugs, missing features, etc:</font><u><font color="#0000FF"><br></font></u><a href="https://github.com/gtaban/TLSService/issues"><u><font size="2" color="#0000FF">https://github.com/gtaban/TLSService/issues</font></u></a><br><font size="2"><br>Shout out to Bill Abt for writing the original SSLService which this is based on.</font><br><font size="2"><br>Looking forward to everyone </font><br><br><tt><font size="2">_______________________________________________<br>swift-server-dev mailing list<br>swift-server-dev@swift.org<br></font></tt><tt><font size="2"><a href="https://lists.swift.org/mailman/listinfo/swift-server-dev">https://lists.swift.org/mailman/listinfo/swift-server-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>