aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
AgeCommit message (Collapse)Author
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-04-06Validate the RSA key size received when parsing INTRODUCE2 cells.Yawning Angel
Fixes bug 15600; reported by skruffy
2015-04-03Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-03Decrease the amount of rend circ relaunches for hidden services.George Kadianakis
2015-03-13const-ify the new failure vars, and one old oneNick Mathewson
2015-03-12Don't init hs intro key as side effect of an assertSebastian Hahn
2015-02-17Remove tor_strclear(), and replace previous calls with memwipe().Yawning Angel
2015-02-09Reserve enough space for rend_service_port_config_tSebastian Hahn
In #14803, Damian noticed that his Tor sometimes segfaults. Roger noted that his valgrind gave an invalid write of size one here. Whenever we use FLEXIBLE_ARRAY_MEMBER, we have to make sure to actually malloc a thing that's large enough. Fixes bug #14803, not in any released version of Tor.
2015-01-30Fix some unused-argument warningsNick Mathewson
2015-01-30Fix an uninitialized-variable warning.Nick Mathewson
2015-01-30Fix: test -ENOENT after config_parse_unix_port()David Goulet
Check for -ENOENT instead of ENOENT after the HS port is parsed. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-01-28Make hidden service use the config unix prefixDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-01-28Merge branch 'bug11485_026_v2_squashed'Nick Mathewson
2015-01-28fixup! Refactor the use of ifdef HAVE_SYS_UN_HDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-01-28Actually make connections to HSes on AF_UNIX socketsAndrea Shepard
2015-01-28Handle config options for AF_UNIX hidden services rendservice.cAndrea Shepard
2015-01-28Bump a client authorization message from debug to info.Nick Mathewson
A user wants this for 14015, and it seems fairly reasonable.
2015-01-27Groundwork for AF_UNIX hidden services in rendservice.cAndrea Shepard
2015-01-20Merge branch 'bug14084'Nick Mathewson
2015-01-10Speed up hidden service bootstrap by reducing the initial post delayteor
Drop the MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but keep the default at 30 seconds. Reduces the hidden service bootstrap to 25 seconds from around 45 seconds. Change the default src/test/test-network.sh delay to 25 seconds. Closes ticket 13401.
2015-01-05Tolerate starting up with missing hidden service directoryNick Mathewson
Fixes bug 14106; bugfix on 0.2.6.2-alpha Found by stem tests.
2015-01-03New option "HiddenServiceAllowUnknownPorts"Nick Mathewson
This allows hidden services to disable the anti-scanning feature introduced in 0.2.6.2-alpha. With this option not set, a connection to an unlisted port closes the circuit. With this option set, only a RELAY_DONE cell is sent. Closes ticket #14084.
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-12-30Coalesce v0 and v1 fields of rend_intro_cell_tNick Mathewson
This saves a tiny bit of code, and makes a longstanding coverity false positive go away.
2014-12-12fix a long lineNick Mathewson
2014-12-12Merge remote-tracking branch 'meejah/ticket-13941-b'Nick Mathewson
2014-12-12Tweak 13942 fixNick Mathewson
2014-12-11Pre-check hidden-service-dir permissions/ownershipmeejah
See ticket #13942 where Tor dies if you feed it a hidden service directory with the wrong owner via SETCONF.
2014-12-11Fix 13941: make calling log_new_relay_greeting() optional.meejah
Specifically, only if we're creating secret_id_key do we log the greeting (and then only if the key is actually created).
2014-11-27Fix a memory leak in rend_services_introduceNick Mathewson
This is CID 1256187 ; bug not in any released tor.
2014-11-20Make can_complete_circuits a static variable.Nick Mathewson
2014-11-20Don't build introduction circuits until we know we can build circuitsNick Mathewson
Patch from akwizgran. Ticket 13447.
2014-11-05Merge remote-tracking branch 'meejah/ticket-11291-extra-utests'Nick Mathewson
Conflicts: src/or/config.c
2014-11-04Add comments and rename intro_nodes list in rend_services_introduce()David Goulet
(No changes file needed: this patch just adds comments and renames variables. This is ticket 13646. message taken from the ticket. -Nick)
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-09-13fix typo in commentRoger Dingledine
2014-09-02Fix white spaceDavid Stainton
2014-08-30Make HiddenServiceDirGroupReadable per-hidden-servicemeejah
2014-08-30Clean up patchDavid Stainton
Here I clean up anon's patch with a few of nickm's suggestions from comment 12: https://trac.torproject.org/projects/tor/ticket/11291#comment:12 I did not yet completely implement all his suggestions.
2014-08-30Ticket #11291: patch from "anon":anonymous
test-11291-group-redable-hsdirs-wtests-may8.patch
2014-08-22Tidy status handling in rendservice.cNick Mathewson
We had some code to fix up the 'status' return value to -1 on error if it wasn't set, but it was unreachable because our code was correct. Tweak this by initializing status to -1, and then only setting it to 0 on success. Also add a goto which was missing: its absence was harmless. [CID 718614, 718616]
2014-08-21Allow rend_service_intro_free to get called with NULLNick Mathewson
(We allowed it previously, but produced an LD_BUG message when it happened, which is not consistent Also, remove inconsistent NULL checks before calling rend_service_intro_free. (Removing the check is for CID 718613)
2014-08-15Autoconvert most circuit-list iterations to smartlist iterationsNick Mathewson
Breaks compilation. Used this coccinelle script: @@ identifier c; typedef circuit_t; iterator name TOR_LIST_FOREACH; iterator name SMARTLIST_FOREACH_BEGIN; statement S; @@ - circuit_t *c; ... - TOR_LIST_FOREACH(c, \(&global_circuitlist\|circuit_get_global_list()\), head) + SMARTLIST_FOREACH_BEGIN(circuit_get_global_list(), circuit_t *, c) S + SMARTLIST_FOREACH_END(c);
2014-05-23sandbox: Correct fix for hs part of 12064Nick Mathewson
Bugfix on cfd0ee514c279bc6c7b; bug not in any released version of tor
2014-05-22sandbox: allow reading of hidden service configuration files.Nick Mathewson
fixes part of 12064
2014-04-18scan-build: bulletproof last-chance errormsg generation in rendservice.cNick Mathewson
If 'intro' is NULL in these functions, I'm pretty sure that the error message must be set before we hit the end. But scan-build doesn't notice that, and is worried that we'll do a null-pointer dereference in the last-chance errormsg generation.
2014-04-02Drop MAX_REND_FAILURES to 8Nick Mathewson
2014-02-15Remove a bunch of functions that were never called.Nick Mathewson