tlsdate icon indicating copy to clipboard operation
tlsdate copied to clipboard

tlsdate-helper: openssl: support connecting on IPv6-only networks.

Open iancoolidge opened this issue 8 years ago • 0 comments

This is based on a patch I found here: https://github.com/jameshilliard/buildroot/blob/master/package/tlsdate/tlsdate-0020-openssl-ipv6.patch originally authored by Avery Pennarun ([email protected]).

Here's the original commit message:

openssl's BIO_s_connect methods support IPv4 only. Use BIO_s_fd instead to connect using a file descriptor, and supply our own pre-connected socket file descriptor. This allows us to support both IPv4 and IPv6 servers.

There may be a cleaner way to do this with the OpenSSL API more directly, but this patch seems to work fine.

iancoolidge avatar Oct 13 '17 01:10 iancoolidge