Closed raedwulf closed 8 years ago
Travis build is currently broken because the openssl version on there is 1.0.1, when this needs 1.0.2 or libreSSL. I'm looking at solutions.
Travis is driving me nuts...
Let me double-check: So this is the API mimicking the new TLS API as we've discussed it earlier, right?
Yes it is :) It needs some work to finalise the API but it's a start.
It'll be a week or two before I think this is ready to be pushed because there's a lot of cases that I've not tested yet. Also, I noticed there's a new _done function, I've not quite understood the semantics of those functions yet as opposed to _stop.
I plan to update the RFC during the weekend, but the idea is to close the sending half of the connection. For example HTTP client:
send_request_line(); send_field(); send_filed(); done(); recv_status_line(); recv_field(); stop();
Oh okay! Thanks.
I'm still trying to figure out what to do with travis, I think the best approach would be to download and compile openssl in the travis build script from source. I'll try and get that working tonight.
Cloned, ./autogen.sh; configure; make => configure: error: conditional "HAVE_REALLOCARRAY" was never defined.
I've fixed that by putting the check out of TLS block in configure.ac However, it's not clear to me why it didn't work the way you've written it originally.
Oh I removed the macro that did that check because reallocarray is available on all the platforms that we care about (because on older systems various things would break anyway). It seems that I must have had the check still in my cache or something (not sure where autotools stores things).
This adds preliminary support for the TLS protocol based on libtls. To enable support for tls, pass
--enable-tls
to configure.The new
tls
directory contains a modified version of libtls which retains the ISC license from OpenBSD (the ISC license is effectively equivalent to the MIT/X11 and BSD 2-clause with reduced wording):Further work needed:
The contributed
btls.c
and other changes to the dsock library are under dsock's MIT/X11 license.