Attached is a relatively quick and certainly dirty patch to wget adding TLS
support via libtls. I threw this together on a plane but it's working
reasonably well for me allowing me to remove Curl/libcurl on a few
projects. I will submit further patches to clean up this toy as it's in
pretty dire shape.

When statically building with bearssl and libtls-bearssl this adds about
175K which isn't too bad for a TLS 1.1/1.2 implementation. Building with
libressl's tls implementation expands this by about 400K but also gets you
TLS 1.3 support. By default only TLS 1.1 and 1.2 are enabled. I'll add
another configuration option to enable TLS 1.3.

Feedback greatly appreciated.

- Eric

Attachment: wget-tls.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to