Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 584360

Summary: dev-libs/openssl: Compatibility with [bracketed] IPv6 addresses as a -connect parameter
Product: Gentoo Linux Reporter: Matthias Waechter <matthias>
Component: [OLD] LibraryAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for supporting [bracketed] IPv6 address as -connect parameter to openssl

Description Matthias Waechter 2016-05-27 19:12:06 UTC
Created attachment 435576 [details, diff]
patch for supporting [bracketed] IPv6 address as -connect parameter to openssl

Hello there,

Seems that Gentoo developers did a great job in teaching OpenSSL builds to support literal IPv6 addresses, specified as the -connect parameter. The following works flawlessly right now:

$ openssl s_client -connect ::1:443

However, other distributions like Fedora (only) support the bracketed form of the IPv6 address, like in URLs, and so some scripts like testssl.sh expect the bracketed IPv6 address to work. However, Gentoo builds don’t support it. The following gives an error:

$ openssl s_client -connect [::1]:443

The attached patch should be an easy fix for that. It is expected to be applied after the openssl-1.0.2-ipv6.patch.

Please consider adding this patch.

Thank you,
– Matthias
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-14 13:55:14 UTC
This would be something to send upstream. I can't speak for why in 2016 our OpenSSL behaved differently to Fedora's.