Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iancoolidge
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant