-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
HTTP client.c: fix OSSL_HTTP_proxy_connect() for HTTPS proxy use #15796
Conversation
Apologies for removing them. Most didn't seem all that relevant... |
cc2cd32
to
a5bea2f
Compare
Argh, doing the fix I introduced another bug - fixed now. |
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #15796)
Merged - thanks @t8m and @paulidale for your reviews. |
BTW, since the pattern for checking if a string is prefixed by a string literal, such as
is pretty common also elsewhere in OpenSSL code, how about moving
which I introduced locally in This would make the code more readable and
|
Adding that macro more widely seems like a reasonable idea. I'd modify it slightly: #define HAS_PREFIX(str, prefix) (strncmp(str, prefix "", sizeof(prefix) - 1) == 0) this will error if prefix isn't a string constant. Otherwise badness could happen |
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
Closing as this was merged already. |
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#15796)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#15796)
I was not happy that many TODOs also for CMP code were removed (during my vacation) in PR #15539 without actually solving them.
I've started tracing those TODOs for which I feel responsible.
I just found out that the answer on the TODO
is the server host name correct for TLS via proxy?
, which was removed fromapps/cmp.c
, is "yes",but while experimenting on this I encountered a bug that leads to connection failure (with the misleading error:
received wrong http version
) when the HTTP client tries to CONNECT using TLS via a proxy. This is fixed by the present PR.