summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-03-16prop140: Use sha3-256, not sha2-256Nick Mathewson
This is a protocol update from recent prop140 changes. Also, per #21673, we need to check the entire document, including signatures.
2017-03-16Add a couple more cases to reach 100% coverage.Nick Mathewson
2017-03-16Cover two more failing cases with unit testsNick Mathewson
2017-03-16Fix an unreachable memory leak.Nick Mathewson
Also add a missing newline.
2017-03-16Remove digest[12]_hexNick Mathewson
2017-03-16Tweak&test log messages on apply_diffNick Mathewson
2017-03-16Fixes when applying diffs: Allow 2-line diffs, fix bogus freeNick Mathewson
The 2-line diff changs is needed to make the unit tests actually test the cases that they thought they were testing. The bogus free was found while testing those cases
2017-03-16Mark some warnings as bugs, and as (hopefully) unreachable.Nick Mathewson
2017-03-16Check for expected warnings in apply_ed_diffNick Mathewson
2017-03-16Fix some logging on failed apply_ed_diffNick Mathewson
2017-03-16No need to end a log message with newline.Nick Mathewson
2017-03-16test operator cleanupNick Mathewson
2017-03-16Enforce correct log messages on diff generation failure testsNick Mathewson
2017-03-16Test two more base64cmp cases.Nick Mathewson
2017-03-16Use "STATIC" to export consdiff fns for testingNick Mathewson
Previously test_consdiff.c just did #include "consdiff.c", which is not great style, and messes up coverage testing.
2017-03-16Consensus diff backend from Daniel Martí GSOC project.Daniel Martí
(This commit was extracted by nickm based on the final outcome of the project, taking only the changes in the files touched by this commit from the consdiff_rebased branch. The directory-system changes are going to get worked on separately.)
2017-03-07Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-07Merge branch 'bug21594_030_squashed' into maint-0.3.0Nick Mathewson
2017-03-07Remove delay in hidden service introduction point checksteor
Make hidden services with 8 to 10 introduction points check for failed circuits immediately after startup. Previously, they would wait for 5 minutes before performing their first checks. Fixes bug 21594; bugfix on commit 190aac0eab9 in Tor 0.2.3.9-alpha. Reported by alecmuffett.
2017-03-06Merge remote-tracking branch 'ahf/bugs/20988'Nick Mathewson
2017-03-06Merge remote-tracking branch 'teor/bug19699'Nick Mathewson
2017-03-06Fix a function name in a comment. Closes 21580Nick Mathewson
2017-03-04Merge branch 'feature21598_squashed'Nick Mathewson
2017-03-04Log a message when a hidden service has fewer intro points than expectedteor
Closes ticket 21598.
2017-03-04Merge branch 'bug21599_squashed'Nick Mathewson
2017-03-04Simplify hidden service descriptor creationteor
Use an existing flag to check if an introduction point is established. Cleanup after 21596. Fixes bug 21599; bugfix on 0.2.7.2-alpha.
2017-03-04Merge remote-tracking branch 'teor/bug21596_030'Nick Mathewson
2017-03-04Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-04Merge remote-tracking branch 'teor/bug21576_029_v2' into maint-0.3.0Nick Mathewson
2017-03-02Make hidden services always check for failed intro point connectionsteor
Previously, they would stop checking when they exceeded their intro point creation limit. Fixes bug 21596; bugfix on commit d67bf8b2f23 in Tor 0.2.7.2-alpha. Reported by alecmuffett.
2017-03-02Make hidden services always check for failed intro point connectionsteor
Previously, they would stop checking when they exceeded their intro point creation limit. Fixes bug 21596; bugfix on commit d67bf8b2f23 in Tor 0.2.7.2-alpha. Reported by alecmuffett.
2017-03-02Fix a crash when a connection tries to open just after it has been unlinkedteor
Fixes bug 21576; bugfix on Tor 0.2.9.3-alpha. Reported by alecmuffett.
2017-03-01Bump to 0.3.0.4-rc-devNick Mathewson
2017-03-01Reset `buf` after each succesful test to avoid artifacts.Alexander Færøy
This patch resets `buf` in test_util_fgets_eagain() after each succesful ivocation to avoid stray artifacts left in the buffer by erroneous tor_fgets() calls.
2017-03-01Use tor_fgets() instead of fgets().Alexander Færøy
This patch changes our use of fgets() to tor_fgets() for more consistent error handling across different versions of the C library.
2017-03-01Add compatibility function for fgets(3).Alexander Færøy
This patch adds the `tor_fgets()` function to our compatibility layer. `tor_fgets()` adds an additional check for whether the error-bit have been enabled for the given file stream, if that is the case and `errno` is set to `EAGAIN` we make sure that we always return NULL. Unfortunately `fgets(3)` behaves differently on different versions of the C library. See: https://bugs.torproject.org/21416 See: https://bugs.torproject.org/20988
2017-03-01Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-01Restore correct behavior of 0.3.0.4-rc with bridges+ipv6-minNick Mathewson
In that chutney test, the bridge client is configured to connect to the same bridge at 127.0.0.1:5003 _and_ at [::1]:5003, with no change in transports. That meant, I think, that the descriptor is only assigned to the first bridge when it arrives, and never the second.
2017-03-01Merge remote-tracking branch 'asn/bug21586'Nick Mathewson
2017-03-01Prevent SRV assert when called from misconfigured bridge auth.George Kadianakis
2017-03-01Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-01Improve descriptor checks in the new guard algorithm.George Kadianakis
- Make sure we check at least two guards for descriptor before making circuits. We typically use the first primary guard for circuits, but it can also happen that we use the second primary guard (e.g. if we pick our first primary guard as an exit), so we should make sure we have descriptors for both of them. - Remove BUG() from the guard_has_descriptor() check since we now know that this can happen in rare but legitimate situations as well, and we should just move to the next guard in that case.
2017-03-01Bump to 0.2.9.10-devNick Mathewson
2017-03-01Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-01Make test-network.sh always call chutney's test-network.shteor
Previously, this only worked on systems which had bash installed, due to some bash-specific code in the script. Fixes bug 19699; follow-up to 21581.
2017-03-01Remove the space before the interpreter name in test-network.shteor
Apparently some unixes don't like this. Part of #21581.
2017-03-01Remove the space before the interpreter name in test-network.shteor
Apparently some unixes don't like this. Part of #21581.
2017-02-28Merge branch 'maint-0.3.0'Nick Mathewson
2017-03-01Restore support for test-network.sh on BSD and other systems without bashteor
(But use bash if it's available.) This is a workaround until we remove bash-specific code in 19699. Fixes bug 21581; bugfix on 21562, not in any released version of tor.
2017-02-28Merge remote-tracking branch 'teor/bug21510'Nick Mathewson