Repository navigation
Conversation
dca765d to
5b190ed
Compare
5b190ed to
7ef6f3b
Compare
As documented and as working in other TLS backends. Reported-by: Martin Galvan Bug: https://curl.haxx.se/mail/lib-2018-10/0113.html Fixes #3284 Closes #3285
|
I could use a review from someone who actually use or develop on Windows before I merge this. It is written completely "blind" as I don't have windows dev setup. |
|
This would need to be changed to account for when HAS_MANUAL_VERIFY_API is not available. We should be able to verify the host without that. Perhaps so that the certificate function does not verify the host or check if verifypeer is enabled. In other words split it into Curl_verify_peer and Curl_verify_host and they both do exactly that, then check verifypeer or verifyhost before calling them. I will write up an alternate proposal. |
Prior to this change if the user disabled the verify peer check then no host check was done. Empirical testing shows SCH_CRED_MANUAL_CRED_VALIDATION, which we use when peer verification is disabled, also disables hostname verification. In Windows < 8 our manual host verification check (ie the check used when CA info is specified, or peer verification is disabled, or WinCE is the OS) for schannel continues to only check the first subject alternate name, and not all the names, since there is no easy way supported by the API. It looks possible to do just more work, and should be addressed separately. Assisted-by: Daniel Stenberg Reported-by: Martin Galvan Fixes curl#3284 Closes curl#3285 Closes #xxxx
|
See https://github.com/curl/curl/compare/master...jay:winssl_verifyhost_fix1?expand=1&w=1 |
|
@jay: please, feel free to push/rebase that into this branch if you want. I have a bigger trust in your code than in mine for this (or create a separate PR of your own) so that we can get it through the CI and have the code easier to review! |
7ef6f3b to
5ad4285
Compare
|
mingw seems to not like it: |
Prior to this change if the user disabled the verify peer check then no host check was done. Empirical testing shows SCH_CRED_MANUAL_CRED_VALIDATION, which we use when peer verification is disabled, also disables hostname verification. In Windows < 8 our manual host verification check (ie the check used when CA info is specified, or peer verification is disabled, or WinCE is the OS) for schannel continues to only check the first subject alternate name, and not all the names, since there is no easy way supported by the API. It looks possible to do just more work, and should be addressed separately. Assisted-by: Daniel Stenberg Reported-by: Martin Galvan Fixes #3284 Closes #3285 Closes #xxxx
5ad4285 to
8494374
Compare
|
@jay what's the status on this PR? should we merge? |
|
I take that as a no. |
As documented and as working in other TLS backends.
Fixes #3284