aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-14fmt two man page entriesRoger Dingledine
whoever made the patch for #17975 wasn't using a proper green-screen vt100. :)
2017-05-14remove stray equals signRoger Dingledine
resolves ticket 22256. this typo crept in during bug 21715's commit fd8284c8.
2017-05-12Merge branch 'ticket21953_029'Nick Mathewson
2017-05-11Enable some windows hardening featuresNick Mathewson
One (HeapEnableTerminationOnCorruption) is on-by-default since win8; the other (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) supposedly only affects ATL, which (we think) we don't use. Still, these are good hygiene. Closes ticket 21953.
2017-05-11Untangle cleanup logic in test_hs_intropoint.cTaylor Yu
Cleanup logic in test_intro_point_registration() invoked tt_assert() in a way that could cause it to jump backward into the cleanup code if the assertion failed, causing Coverity to see a double free (CID 1397192). Move the tt_assert() calls into a helper function having the well-defined task of testing hs_circuitmap_free_all(). Fixes #22231.
2017-05-11Merge remote-tracking branch 'arma/cleanup22213'Nick Mathewson
2017-05-11Merge branch 'ticket21871_031_03_squashed'Nick Mathewson
2017-05-11prop224: Change encryption keys descriptor encodingDavid Goulet
A descriptor only contains the curve25519 public key in the enc-key field so the private key should not be in that data structure. The service data structures will have access to the full keypair (#20657). Furthermore, ticket #21871 has highlighted an issue in the proposal 224 about the encryption key and legacy key being mutually exclusive. This is very wrong and this commit fixes the code to follow the change to the proposal of that ticket. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-11Improve MyFamily docs, based on patch from nusenuNick Mathewson
Closes ticket 22223
2017-05-11Merge remote-tracking branch 'argonblue/bug22177'Nick Mathewson
2017-05-11Merge remote-tracking branch 'argonblue/bug22221'Nick Mathewson
2017-05-10Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal valueRoger Dingledine
We already have a way to return a 400 response code along with a personalized message response for the uploader. Resolves ticket 22213.
2017-05-10simplify functions now that they don't use options paramRoger Dingledine
2017-05-10Merge branch 'maint-0.3.0'Roger Dingledine
2017-05-10resolve now-unused parameter from #21642 fixRoger Dingledine
2017-05-10Test config line parsing errorsTaylor Yu
Add tests for lower-level syntax errors in config file lines. Fixes #22177.
2017-05-10Merge branch 'maint-0.3.0'Nick Mathewson
2017-05-10Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-05-10Merge branch 'prop275_minimal_029' into maint-0.2.9Nick Mathewson
2017-05-10Resurrect dead code in test_channelpadding.cTaylor Yu
A for-loop in test_channelpadding_timers() would never run because it was trying to increment a counter up to CHANNELS_TO_TEST/3 after an earlier block already incremented it to CHANNELS_TO_TEST/2. Fixes #22221, CID 1405983.
2017-05-10#22211 Fix a comment in routerparse.cNick Mathewson
2017-05-10Merge remote-tracking branch 'public/my-family-list-fix-4498'Nick Mathewson
2017-05-10Restore wget behavior when fetching compressed objectsNick Mathewson
We do this by treating the presence of .z as meaning ZLIB_METHOD, even if Accept-Encoding does not include deflate. This fixes bug 22206; bug not in any released tor.
2017-05-10Fix compilation on libevent2-only systemsNick Mathewson
Patch from rubiate; fixes bug 22219. Remember, we don't support libevent1 any more.
2017-05-10In channelpadding tests that touch libevent, call event_reinit().Nick Mathewson
This is necessary to avoid crashes and test failures on kevent-based systems. Fixes bug 22209; bug not in any released Tor.
2017-05-10add an XXX with a minor bug in dirserv_add_multiple_descriptorsRoger Dingledine
2017-05-09Add a check and a cast in rephist.c to fix a warningNick Mathewson
2017-05-09Tidy or_options_t by removing obsolete options.Nick Mathewson
Nothing was setting or inspecting these fields, and they were marked as OBSOLETE() in config.c -- but somehow we still had them in the or_options_t structure. Ouch.
2017-05-09Merge branch 'dgoulet_ticket22060_031_01_squashed'Nick Mathewson
2017-05-09config: Improve changes file bug22060David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Parse ports at the start of options_validate()David Goulet
There was a bug that got exposed with the removal of ORListenAddress. Within server_mode(), we now only check ORPort_set which is set in parse_ports(). However, options_validate() is using server_mode() at the start to check if we need to look at the uname but then the ORPort_set is unset at that point because the port parsing was done just after. This commit fixes that. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove TLSECGroup optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove WarnUnsafeSocks optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove CloseHSServiceRendCircuitsImmediatelyOnTimeout optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove CloseHSClientCircuitsImmediatelyOnTimeout optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove FastFirstHopPK optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove ExcludeSingleHopRelays optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove AllowSingleHopExits optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove AllowSingleHopCircuits optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09config: Remove AllowInvalidNodes optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09test: Remove HS decode valid intro point testDavid Goulet
The descriptor fields can't be validated properly during encoding because they are signed by a descriptor signing key that we don't have in the unit test. Removing the test case for now but ultimately we need an independent implementation that can encode descriptor and test our decoding functions with that. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09test: Move duplicate HS test code and unify itDavid Goulet
Create the hs_test_helpers.{c|h} files that contains helper functions to create introduction point, descriptor and compare descriptor. Used by both the hs cache and hs descriptor tests. Unify them to avoid code duplication. Also, this commit fixes the usage of the signing key that was wrongly used when creating a cross signed certificate. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09Whoops! Give Daniel Martí credit for prop140 work.Nick Mathewson
2017-05-09Changes file for ticket 4998Nick Mathewson
2017-05-09Minor cleanups in test_config.Nick Mathewson
Use a more standard indentation style for the end block; remove redundant if() around tor_free.
2017-05-09Split MyFamily into user-specified version and normalized versionNick Mathewson
This change prevents a no-longer-supported behavior where we change options that would later be written back to torrc with a SAVECONF. Also, use the "Pointer to final pointer" trick to build the normalized list, to avoid special-casing the first element.
2017-05-09Fix an implicit conversion warningNick Mathewson
2017-05-09Fix a warning about a shadowed globalNick Mathewson
2017-05-09Fix a warning about an extraneous semicolonNick Mathewson