torproject / tor Public
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
Tor api owning control #260
Merged
torproject-pusher
merged 9 commits into
torproject:master
from
nmathewson:tor_api_owning_control
Sep 4, 2018
Merged
Tor api owning control #260
torproject-pusher
merged 9 commits into
torproject:master
from
nmathewson:tor_api_owning_control
Sep 4, 2018
Conversation
I'm doing this because I want to make it a lower-level function again, so that we can use it without linking in the rest of the universe.
Also refactor some annoying code in tor_ersatz_socketpair.
This change also makes tor_ersatz_socketpair() follow the same interface as socketpair() rather than tor_socketpair(), so it now needs to be wrapped in the same code as socketpair() does.
We need this so that the tor_api user can specify some arguments, while the tor_api implementation adds others. This implementation detail should not be visible to tor_api users.
This lets us potentially use it for internal passing of windows sockets.
ahf
reviewed
Aug 30, 2018
| void | ||
| tor_main_configuration_free(tor_main_configuration_t *cfg) | ||
| { | ||
| if (cfg == NULL) | ||
| return; | ||
| if (cfg->argv_owned) { | ||
| int i; | ||
| for (i = 0; i < cfg->argc_owned; ++i) { |
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.
No description provided.
The text was updated successfully, but these errors were encountered: