Created attachment 435576 [details, diff]
patch for supporting [bracketed] IPv6 address as -connect parameter to openssl
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.