- Jul 01, 2016
-
-
David Goulet authored
Signed-off-by:
David Goulet <dgoulet@torproject.org> Signed-off-by:
George Kadianakis <desnacked@riseup.net>
-
David Goulet authored
This commit makes it that tor now uses the shared random protocol by initializing the subsystem. Signed-off-by:
David Goulet <dgoulet@torproject.org> Signed-off-by:
George Kadianakis <desnacked@riseup.net>
-
David Goulet authored
One of the last piece that parses the votes and consensus in order to update our state and make decision for the SR values. We need to inform the SR subsystem when we set the current consensus because this can be called when loaded from file or downloaded from other authorities or computed. The voting schedule is used for the SR timings since we are bound to the voting system. Signed-off-by:
David Goulet <dgoulet@torproject.org> Signed-off-by:
George Kadianakis <desnacked@riseup.net>
-
David Goulet authored
This commit adds the commit(s) line in the vote as well as the SR values. It also has the mechanism to add the majority SRVs in the consensus. Signed-off-by:
George Kadianakis <desnacked@riseup.net> Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
David Goulet authored
This adds the logic of commit and SR values generation. Furthermore, the concept of a protocol run is added that is commit is generated at the right time as well as SR values which are also rotated before a new protocol run. Signed-off-by:
George Kadianakis <desnacked@riseup.net> Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- Jun 20, 2016
-
-
David Goulet authored
This commit introduces two new files with their header. "shared_random.c" contains basic functions to initialize the state and allow commit decoding for the disk state to be able to parse them from disk. "shared_random_state.c" contains everything that has to do with the state for both our memory and disk. Lots of helper functions as well as a mechanism to query the state in a synchronized way. Signed-off-by:
David Goulet <dgoulet@torproject.org> Signed-off-by:
George Kadianakis <desnacked@riseup.net>
-
Signed-off-by:
David Goulet <dgoulet@ev0ke.net>
-
David Goulet authored
Make sure to memset(0) the destination buffer so we don't leave any uninitialized data. Fixes #19462 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
This hack provides a way to make sure we can see coverage from test-switch-id. If you set OVERRIDE_GCDA_PERMISSIONS_HACK, we temporarily make the .gcda files mode 0666 before we run the test scripts, and then we set them to 0644 again afterwards. That's necessary because the test_switch_id.sh script does a setuid() to 'nobody' part way through, and drops the ability to change its mind back.
-
Nick Mathewson authored
-
Nick Mathewson authored
Yes, HURD lacks PATH_MAX. But we already limited the maximum buffer to 4096, so why not just use that?
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
David Goulet authored
Slow system can sometime take more than 10 seconds to reach the test callsite resulting in the unit test failing when using time in the future or in the past. Fixes #19465 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Nick Mathewson authored
-
base16_decodes() now returns the number of decoded bytes. It's interface changes from returning a "int" to a "ssize_t". Every callsite now checks the returned value. Fixes #14013 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- Jun 19, 2016
-
-
Nick Mathewson authored
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
realloc()ing a thing in order to try to save memory on it just doesn't make sense with today's allocators. Instead, let's use the fact that whenever we decompress something, either it isn't too big, or we chop it up, or we reallocate it.
-
Nick Mathewson authored
zlib 1.2 came out in 2003; earlier versions should be dead by now. Our workaround code was only preventing us from using the gzip encoding (if we decide to do so), and having some dead code linger around in torgzip.c
-
Nick Mathewson authored
-
Nick Mathewson authored
Fixes bug 19153; patch from "U+039b", who is apparently an uppercase lambda?
-
- Jun 18, 2016
-
-
Andrea Shepard authored
-
- Jun 17, 2016
-
-
Nick Mathewson authored
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
Fixes #18280 Signed-off-by:
David Goulet <dgoulet@ev0ke.net>
-
The Autoconf macro AC_USE_SYSTEM_EXTENSIONS defines preprocessor macros which turn on extensions to C and POSIX. The macro also makes it easier for developers to use the extensions without needing (or forgetting) to define them manually. The macro can be safely used because it was introduced in Autoconf 2.60 and Tor requires Autoconf 2.63 and above.
-
Nick Mathewson authored
-
- Jun 16, 2016
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
All of our code just uses parse_config_line_from_str_verbose.
-
Nick Mathewson authored
Also, add tests for it in case someday it does become reachable.
-
Nick Mathewson authored
I'm not angry, Windows: just very disappointed.
-
David Goulet authored
When deleting an ephemeral HS, we were only iterating on circuit with an OPEN state. However, it could be possible that an intro point circuit didn't reached the open state yet. This commit makes it that we close the circuit regardless of its state except if it was already marked for close. Fixes #18604 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-