Skip to content

UPSTREAM PR #30988: test: respect disabled IPv6 in bio_tfo_test#688

Open
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-30988-fix-bio-tfo-ipv6-disabled
Open

UPSTREAM PR #30988: test: respect disabled IPv6 in bio_tfo_test#688
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-30988-fix-bio-tfo-ipv6-disabled

Conversation

@loci-dev
Copy link
Copy Markdown

Note

Source pull request: openssl/openssl#30988

bio_tfo_test can select IPv6 addresses even when OpenSSL is built with -DOPENSSL_USE_IPV6=0.
In particular, the raw FD test uses getaddrinfo with AF_UNSPEC, so it may receive an AF_INET6 address. That address is then rejected by BIO_ADDR_rawmake because IPv6 support was compiled out.

  • setting the BIO accept/connect family to BIO_FAMILY_IPV4
  • using AF_INET instead of AF_UNSPEC in the raw FD test
  • compiling the AF_INET6 switch cases only when IPv6 is enabled

Fixes #30975

Verified with:

./Configure linux-x86_64 shared enable-tfo enable-unit-test no-fips -DOPENSSL_USE_IPV6=0
make -j4 test TESTS=test_bio_tfo V=1

Result: PASS. The FD subtest used IPv4.

Checklist
  • tests are added or updated

@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 27, 2026

No meaningful performance changes were detected across 20081 analyzed functions in the following binaries: libcrypto.so, libssl.so, openssl.

💬 Questions? Tag @loci-dev

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.

2 participants