-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Macos system roots implementation #16246
Closed
maliksaafir
wants to merge
36
commits into
grpc:master
from
tdbhacks:macos-system-roots-clean-history
Closed
Macos system roots implementation #16246
maliksaafir
wants to merge
36
commits into
grpc:master
from
tdbhacks:macos-system-roots-clean-history
Conversation
This file contains 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
|
|
|
6593233
to
e10f67b
Compare
|
|
|
|
|
361ffcf
to
562a1e5
Compare
|
562a1e5
to
f409732
Compare
Added a flag-guarded feature that allows gRPC to load TLS/SSL roots from the OS trust store. This is the Linux-specific implementation of such feature.
- Removed instances of d_type, now using POSIX-compliant stat; - Not including dirent.h on Windows anymore.
- Now using suggested structure to handle platform specificity; - Addressed first wave of review comments and suggestions.
- should fix build errors on non-linux systems - slight formatting
- Fixed wrong include statement that was causing Windows failures - Added system roots flag to grpc_security_constants.h - Removed MacOS and Windows references, focusing on Linux now - Removed old unit test from security_connector_test.cc - Regenerated project files and added new files to BUILD, which should address Bazel build failures.
- One of the unit tests introduced in security_connector_test is now Linux-specific as a way to temporarily address the issue while we investigate its failure on MacOS. - Minor comment improvements.
- add missing gpr_frees and grpc_slice_unrefs
gpr_getenv() was causing memory leaks. Freed variables accordingly. After a quick check, valgrind does not show any memory leaks now.
- slight formatting, reformatting - finish testing TODO
- fix fallback preprocessor check - remove duplicate build rule
f409732
to
fd40338
Compare
|
|
- TODO for compatibility with iOS Security library
|
|
|
|
Seems obsolete, closing. |
I wonder why this is closed without merging. Is there still a plan to use system trust store on Mac? |
This is mainly a cleanup-close. Code that has been rotting since 8+ months probably needs revisiting. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This implements the utilization of MacOS system root certificates. It's currently missing the implementation of a feature to remove distrusted certs from the cert pool gathered by the code.