[Toybox] [PATCH] wget: add TLS support

Eric Molitor emolitor at molitor.org
Sun Oct 17 06:44:31 PDT 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20211017/20b04f96/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wget-tls.patch
Type: application/octet-stream
Size: 6615 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20211017/20b04f96/attachment-0002.obj>


More information about the Toybox mailing list