Nick Mathewson
accf239fa3
Rectify include paths (automated)
2018-06-21 13:19:00 -04:00
Nick Mathewson
0dab29ce10
Run rectify_include_paths.py
2018-06-20 09:35:05 -04:00
Nick Mathewson
def1f20e1f
Extract routerstatus_t into its own header.
2018-06-15 14:33:03 -04:00
Nick Mathewson
50369f8981
Extract networkstatus_t and ..sr_info_t into their own headers
2018-06-15 13:45:15 -04:00
Nick Mathewson
19c34b4658
Move or_connection_t to its own header.
2018-06-15 10:48:50 -04:00
Isis Lovecruft
fe3aca1491
crypto: Refactor (P)RNG functionality into new crypto_rand module.
...
* ADD new /src/common/crypto_rand.[ch] module.
* ADD new /src/common/crypto_util.[ch] module (contains the memwipe()
function, since all crypto_* modules need this).
* FIXES part of #24658 : https://bugs.torproject.org/24658
2018-04-06 21:45:28 +00:00
David Goulet
1a4fc9cddf
test: DoS test to make sure we exclude known relays
...
Part of #25193
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-09 11:31:01 -05:00
Nick Mathewson
22a5d3dd2a
remove a redundant semicolon
2018-02-06 08:13:11 -05:00
Nick Mathewson
3bed8fdb91
Use tt_u64_op() for uint64_t inputs.
2018-02-02 15:23:55 -05:00
teor
1f4a73133c
test: Add unit tests for overflows and underflows in cc_stats_refill_bucket
...
Closes #25094 .
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-31 09:27:59 -05:00
teor
a09d5f5735
dos: Make sure cc_stats_refill_bucket can't overflow while calculating
...
Debug log the elapsed time in cc_stats_refill_bucket
Part of #25094 .
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-31 09:27:59 -05:00
teor
b45ae1b002
test: Remove a redundant round from test_dos_bucket_refill
...
This round is left over from the tenths of a second code.
Part of #25094 .
2018-01-31 09:19:39 -05:00
George Kadianakis
c3c2b55dec
test: Add unit tests for the DoS subsystem
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-30 09:18:16 -05:00