aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
Commit message (Collapse)AuthorAge
* Free leakable values in the unit tests.Nick Mathewson2014-02-11
| | | | Thanks, Coverity! (CID 1171414, 1171415, 1171416)
* More fixes to rip out all of the v2 directory code.Karsten Loesing2014-02-03
| | | | (This was a squash commit, but I forgot to squash it. Sorry! --Nick)
* Rip out all of the v2 directory code.Nick Mathewson2014-01-29
| | | | | | The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
* Merge branch 'finish_prop157'Nick Mathewson2013-11-18
|\
| * Make the dir-key-crosscert element requiredNick Mathewson2013-11-14
| | | | | | | | | | | | | | | | | | | | | | | | In proposal 157, we added a cross-certification element for directory authority certificates. We implemented it in 0.2.1.9-alpha. All Tor directory authorities now generate it. Here, as planned, make it required, so that we can finally close proposal 157. The biggest change in the code is in the unit test data, where some old hardcoded certs that we made long ago have become no longer valid and now need to be replaced.
* | Fix unit tests with --disable-curve25519Nick Mathewson2013-09-08
| |
* | Fix some "ISO C90 forbids mixed declarations and code" warningsNick Mathewson2013-09-03
| |
* | Handle HTTP minor versions greater than 9Nick Mathewson2013-09-03
| | | | | | | | | | | | | | (In practice they don't exist, but so long as we're making changes for standards compliance...) Also add several more unit tests for good and bad URL types.
* | Tougher validation for parsing urls from HTTP headers. Fixes #2767.Kevin Butler2013-09-03
| |
* | Check more return values in the unit testsNick Mathewson2013-06-18
|/
* Merge branch 'less_charbuf_rebased' into maint-0.2.4Nick Mathewson2013-04-18
|\ | | | | | | | | | | | | Conflicts: src/or/dirserv.c src/or/dirserv.h src/test/test_dir.c
| * Add unit test for encoding ntor key in routerinfoNick Mathewson2013-04-18
| |
| * Remove the unused pk3 variable from test_dir_formatsNick Mathewson2013-04-18
| |
| * Re-enable test for parsing and generating descriptor with exit policyNick Mathewson2013-04-18
| | | | | | | | | | | | Looks like I turned this off in 6ac42f5e back in 2003 and never got around to making it work again. There has been no small amount of code drift.
| * Test networkstatus_getinfo_helper_singleNick Mathewson2013-04-18
| |
| * Add a quick-and-dirty-test for generate_v2_networkstatus.Nick Mathewson2013-04-18
| | | | | | | | | | | | | | | | It sure is a good thing we can run each test in its own process, or else the amount of setup I needed to do to make this thing work would have broken all the other tests. Test mocking would have made this easier to write too.
| * Test improvement: include microdesc lines in our synthetic microdesc ↵Nick Mathewson2013-04-18
| | | | | | | | consensuses.
| * Use chunks, not buffers, for router descriptorsNick Mathewson2013-04-18
| |
* | Fix some wide linesNick Mathewson2013-04-18
| |
* | Rename all fields which measure bw in kb to end with _kbNick Mathewson2013-04-14
| |
* | Merge remote-tracking branch 'andrea/bug8435' into maint-0.2.4Nick Mathewson2013-03-18
|\ \
| * | Add unit test for dirserv measured bandwidth cacheAndrea Shepard2013-03-07
| |/
* / Remove a bunch of unused macro definitionsNick Mathewson2013-02-23
|/
* Fix a may-be-used-uninitialized warning.Nick Mathewson2013-02-19
|
* Test alternate values of maxunmeasuredbw tooAndrea Shepard2013-02-19
|
* Update unmeasured bandwidth clipping unit test per NickM's bugfix for the ↵Andrea Shepard2013-02-19
| | | | Unmeasured=1 issue
* Add unit test for unmeasured bandwidth clipping in consensusAndrea Shepard2013-02-19
|
* Refactor v3_networkstatus test to allow reuse of test for measuredbwAndrea Shepard2013-02-19
|
* Update the copyright date to 201.Nick Mathewson2013-01-16
|
* Remove some deadcode for parsing v1 directoriesNick Mathewson2012-09-18
| | | | | Fixes bug 6887. There are opportunities to remove more functions if authorities can stop serving dummy v1 directory documents
* Merge remote-tracking branch 'public/bug6538'Nick Mathewson2012-09-11
|\ | | | | | | | | Conflicts: configure.ac
| * In choose-by-bw, scale to better use the range of uint64Nick Mathewson2012-08-27
| | | | | | | | | | The smart part of this is based on an approach and a suggestion by rransom. The unsmart part is my own fault.
| * Refactor the core of choosing by weights into a functionNick Mathewson2012-08-09
| | | | | | | | | | This eliminates duplicated code, and lets us test a hairy piece of functionality.
* | Have directory authorities vote on IPv6 OR ports according to the specLinus Nordberg2012-09-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Define new new consensus method 14 adding "a" lines to vote and consensus documents. From proposal 186: As with other data in the vote derived from the descriptor, the consensus will include whichever set of "a" lines are given by the most authorities who voted for the descriptor digest that will be used for the router. This patch implements this.
* | Never emit the "opt" prefix in any directory stuffNick Mathewson2012-06-28
|/ | | | Fix for bug 5124.
* Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
|
* Synchronize with upstream tinytest again: remove _identifiersNick Mathewson2012-02-13
|
* Rename nonconformant identifiers.Nick Mathewson2012-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 4893. These changes are pure mechanical, and were generated with this perl script: /usr/bin/perl -w -i.bak -p s/crypto_pk_env_t/crypto_pk_t/g; s/crypto_dh_env_t/crypto_dh_t/g; s/crypto_cipher_env_t/crypto_cipher_t/g; s/crypto_digest_env_t/crypto_digest_t/g; s/aes_free_cipher/aes_cipher_free/g; s/crypto_free_cipher_env/crypto_cipher_free/g; s/crypto_free_digest_env/crypto_digest_free/g; s/crypto_free_pk_env/crypto_pk_free/g; s/_crypto_dh_env_get_dh/_crypto_dh_get_dh/g; s/_crypto_new_pk_env_rsa/_crypto_new_pk_from_rsa/g; s/_crypto_pk_env_get_evp_pkey/_crypto_pk_get_evp_pkey/g; s/_crypto_pk_env_get_rsa/_crypto_pk_get_rsa/g; s/crypto_new_cipher_env/crypto_cipher_new/g; s/crypto_new_digest_env/crypto_digest_new/g; s/crypto_new_digest256_env/crypto_digest256_new/g; s/crypto_new_pk_env/crypto_pk_new/g; s/crypto_create_crypto_env/crypto_cipher_new/g; s/connection_create_listener/connection_listener_new/g; s/smartlist_create/smartlist_new/g; s/transport_create/transport_new/g;
* Merge branch 'maint-0.2.2'Roger Dingledine2012-01-08
|\
| * tell me who votes are actually for, not just where they're fromRoger Dingledine2012-01-08
| |
* | Initial support for simplest use of prop186 or-address linesNick Mathewson2011-11-30
| | | | | | | | | | This lets a routerinfo_t have a single IPv6 or-address, and adds support for formatting and parsing those lines.
* | Implement consensus method 12 (proposal 178)Sebastian Hahn2011-11-27
| |
* | Merge remote-tracking branch 'public/bug2003_nm'Nick Mathewson2011-10-07
|\ \
| * | Make the unit tests pass again after the bug2003 fixNick Mathewson2011-09-07
| |/
* | Upgrade to the latest version of tinytestNick Mathewson2011-06-09
| |
* | Prefer tt_assert in unit tests, not tor_assertNick Mathewson2011-06-08
| |
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-03-16
|\| | | | | | | | | Conflicts: src/common/crypto.c
| * Clean up whitespaceNick Mathewson2011-03-16
| |
* | Merge branch 'maint-0.2.2'Roger Dingledine2011-01-15
|\|
| * Sanity-check consensus param valuesSebastian Hahn2011-01-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to make sure that the worst thing that a weird consensus param can do to us is to break our Tor (and only if the other Tors are reliably broken in the same way) so that the majority of directory authorities can't pull any attacks that are worse than the DoS that they can trigger by simply shutting down. One of these worse things was the cbtnummodes parameter, which could lead to heap corruption on some systems if the value was sufficiently large. This commit fixes this particular issue and also introduces sanity checking for all consensus parameters.