-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
[eval] Fix ssl cert verification failures on clean windows environments #11838
Merged
Simn
merged 10 commits into
HaxeFoundation:development
from
tobil4sk:fix/windows-cert-verification
Nov 25, 2024
Merged
[eval] Fix ssl cert verification failures on clean windows environments #11838
Simn
merged 10 commits into
HaxeFoundation:development
from
tobil4sk:fix/windows-cert-verification
Nov 25, 2024
Commits on Nov 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for febae0a - Browse repository at this point
Copy the full SHA febae0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d61189 - Browse repository at this point
Copy the full SHA 5d61189View commit details -
Fix mscv warnings about invalid arguments
Warning C6387 'parameters' could be '0': this does not adhere to the specification for the function 'CertGetCertificateChain'. Warning C6387 'policy_parameters' could be '0': this does not adhere to the specification for the function 'CertVerifyCertificateChainPolicy'. This also fixes an "incorrect parameter" runtime error.
Configuration menu - View commit details
-
Copy full SHA for 9281c6a - Browse repository at this point
Copy the full SHA 9281c6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a293cf - Browse repository at this point
Copy the full SHA 1a293cfView commit details -
Perform checks for all calls of verify_callback
We need to do this every time, because if any callback call returns a non zero flags then the entire verification fails, see: https://github.com/Mbed-TLS/mbedtls/blob/3aefa5b705846c5d4466ae8747160ae9e5054ea8/library/x509_crt.c#L3031 We don't need to loop through the chain, since mbedtls already loops through and calls the callback on every certificate in the chain.
Configuration menu - View commit details
-
Copy full SHA for d8ad7da - Browse repository at this point
Copy the full SHA d8ad7daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13f2061 - Browse repository at this point
Copy the full SHA 13f2061View commit details -
Replace existing certificates if they exist
This avoids duplicate certificates in the store
Configuration menu - View commit details
-
Copy full SHA for cb339c9 - Browse repository at this point
Copy the full SHA cb339c9View commit details -
Propagate CN_MISMATCH ssl cert error
The windows api functions won't check this automatically for us without further modifications, so it's easiest to just respect mbedtls' judgement and propagate this error.
Configuration menu - View commit details
-
Copy full SHA for e94350e - Browse repository at this point
Copy the full SHA e94350eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eeaab9 - Browse repository at this point
Copy the full SHA 5eeaab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b84ade - Browse repository at this point
Copy the full SHA 6b84adeView commit details
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.