Skip to content
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 Trac #28127]: Hidden service option HiddenServiceAuthorizeClient is incompatible with version 3 #435

Closed
wants to merge 4 commits into from

Conversation

Labels
None yet
Projects
None yet
4 participants
@neelchauhan
Copy link
Contributor

@neelchauhan neelchauhan commented Oct 23, 2018

For the bug here.

@coveralls
Copy link

@coveralls coveralls commented Oct 27, 2018

Pull Request Test Coverage Report for Build 2622

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.0009%) to 62.032%

Files with Coverage Reduction New Missed Lines %
src/feature/hs/hs_service.c 1 73.83%
src/feature/hs/hs_common.c 1 83.28%
Totals Coverage Status
Change from base Build 2595: 0.0009%
Covered Lines: 44079
Relevant Lines: 71058

💛 - Coveralls

* present and we did not set HiddenServiceVersion. Depending on the key
* format, we can figure out the service version. */
if (!service->config.hs_version_explicitly_set)
service->config.version = config_learn_service_version(service);
Copy link
Contributor

@dgoulet-tor dgoulet-tor Oct 29, 2018

We try to always put the {} even if this pattern is everywhere in the code base.

@@ -577,16 +581,20 @@ config_service(const config_line_t *line, const or_options_t *options,
tor_assert_nonfatal_unreached();
goto err;
}

Copy link
Contributor

@dgoulet-tor dgoulet-tor Oct 29, 2018

Lets not remove this whitespace. The reason is that the if(ret < 0) being glued to the switch condition is to reflect that they are linked together and that adding anything in between is probably a bad idea.

@@ -220,6 +220,9 @@ typedef struct hs_service_config_t {
/* Is this service ephemeral? */
unsigned int is_ephemeral : 1;

/* Have we explicitly set HiddenServiceVersion? */
unsigned int hs_version_explicitly_set : 1;

Copy link
Contributor

@dgoulet-tor dgoulet-tor Oct 29, 2018

Super nitpick here: Can you put that next to the version so we have the parameters from the same context next to each other?

@torproject-pusher torproject-pusher deleted the branch torproject:master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment