Fix broken OpenSSL version check for IPv6 proxy in check_proxy() (#3095)#3096
Merged
drwetter merged 1 commit intoJul 14, 2026
Merged
Conversation
…tssl#3095) check_proxy() gated IPv6 proxy support on a home-grown version check ${OSSL_VER_MAJOR$}${OSSL_VER_MINOR} -ge 11 at two places, which had a stray "$" causing a "bad substitution" error. On non-LibreSSL builds this aborted the rest of check_proxy() for any IPv6 proxy (literal [addr]:port, or a hostname resolving only to AAAA), so PROXY was never rebuilt into a valid "-proxy ..." argument and downstream openssl calls failed with an error mentioning neither IPv6 nor the proxy. Beyond the typo, the concatenation approach was itself unsound: OSSL_VER_MINOR carries the patch component (e.g. "1.1" for OpenSSL 1.1.1), so ${OSSL_VER_MAJOR}${OSSL_VER_MINOR} yields "11.1" and [[ 11.1 -ge 11 ]] is an arithmetic error. Replace both checks with the dotted-glob idiom used everywhere else in the file for OpenSSL >= 1.1 gates (e.g. testssl.sh:21441, :8216), which is robust and greppable.
4 tasks
Collaborator
|
haven´t had the time yet to look into edit. Later today. Changed the link to the issue for now |
Collaborator
|
@dcooper16 : if you feel like looking into it/merge it: pls go ahead |
Collaborator
|
Thanks, @ericcgu ! That need to be fixed for 3.2 as well. Mind doing a PR? |
Contributor
Author
|
Yes no problem! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#3095
What is your pull request about?
If it's a code change please check the boxes which are applicable
help()AI section
[e.g. GPT-A.B, Claude <NAME> A.B, Gemini A.B <NAME>, Qwen<B>-Coder, DeepSeek-<A> etc.][e.g. GitHub CoPilot, JetBrains Junie, VS Code plugin <NAME> etc.][e.g. GPT-A.B, Claude <NAME> A.B, Gemini A.B <NAME>, Qwen<B>-Coder, DeepSeek-<A> etc.]