aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Upgrade to the latest version of tinytestNick Mathewson2011-06-09
|
* Prefer tt_assert in unit tests, not tor_assertNick Mathewson2011-06-08
|
* Fix a minor coverity-found bug in testsSebastian Hahn2011-06-08
|
* Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-03
|\
| * Reject 128-byte keys that are not 1024-bitNick Mathewson2011-06-03
| | | | | | | | | | | | | | | | | | | | When we added the check for key size, we required that the keys be 128 bytes. But RSA_size (which defers to BN_num_bytes) will return 128 for keys of length 1017..1024. This patch adds a new crypto_pk_num_bits() that returns the actual number of significant bits in the modulus, and uses that to enforce key sizes. Also, credit the original bug3318 in the changes file.
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-28
|\|
| * Fix GCC 4.6's new -Wunused-but-set-variable warnings.Nick Mathewson2011-05-23
| | | | | | | | | | | | | | | | | | | | | | Most instances were dead code; for those, I removed the assignments. Some were pieces of info we don't currently plan to use, but which we might in the future. For those, I added an explicit cast-to-void to indicate that we know that the thing's unused. Finally, one was a case where we were testing the wrong variable in a unit test. That one I fixed. This resolves bug 3208.
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-15
|\|
| * Add a function to pull off the final component of a pathNick Mathewson2011-05-15
| |
* | Fixup whitespace issues from 3122 commit in 0.2.3Nick Mathewson2011-05-15
| |
* | Merge remote-tracking branch 'public/bug3122_memcmp_022' into bug3122_memcmp_023Nick Mathewson2011-05-11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts in various places, mainly node-related. Resolved them in favor of HEAD, with copying of tor_mem* operations from bug3122_memcmp_022. src/common/Makefile.am src/or/circuitlist.c src/or/connection_edge.c src/or/directory.c src/or/microdesc.c src/or/networkstatus.c src/or/router.c src/or/routerlist.c src/test/test_util.c
| * fwd-port test_util_di_ops into tinytest formatNick Mathewson2011-05-11
| |
* | Link to libevent_openssl statically when requestedSebastian Hahn2011-05-06
| | | | | | | | | | | | When configure tor with --enable-bufferevents and --enable-static-libevent, libevent_openssl would still be linked dynamically. Fix this and refactor src/or/Makefile.am along the way.
* | Use read_all() to read messages from spawn_backgroundNick Mathewson2011-05-04
| | | | | | | | | | | | Using read() is an invitation to get some of the data you want, not all. Possible fix for bug 2462
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-03
|\| | | | | | | | | Conflicts: src/or/microdesc.c
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-04-19
|\|
| * Standardize our printf code on %d, not %i.Nick Mathewson2011-04-19
| |
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-04-07
|\|
| * Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittestsGisle Vanem2011-04-07
| |
* | 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 remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-24
|\|
| * Make the DH parameter we use for TLS match the one from Apache's mod_sslNick Mathewson2011-01-24
| | | | | | | | | | | | Our regular DH parameters that we use for circuit and rendezvous crypto are unchanged. This is yet another small step on the path of protocol fingerprinting resistance.
* | 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.
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-15
|\|
| * Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-15
| | | | | | | | | | | | Conflicts: src/or/routerparse.c src/or/test.c
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-15
|\|
| * Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-15
| | | | | | | | | | | | | | | | | | Conflicts: src/or/config.c src/or/networkstatus.c src/or/rendcommon.c src/or/routerparse.c src/or/test.c
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-03
|\|
| * Merge remote branch 'sebastian/bug2314' into maint-0.2.2Nick Mathewson2011-01-03
| |\
| | * Fix compile wanrings revealed by gcc 4.5 on mingwSebastian Hahn2010-12-27
| | |
* | | Bump copyright statements to 2011 (master)Nick Mathewson2011-01-03
| | |
* | | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-03
|\| |
| * | Bump copyright statements to 2011 (0.2.2)Nick Mathewson2011-01-03
| | |
| * | Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-03
| |/ | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
* | Write bidirectional connection stats in single line.Karsten Loesing2010-12-03
| | | | | | | | | | There's no need to have a separate line conn-stats-end for the end date and interval length with only a single line conn-bi-direct following.
* | Refactor conn stats and add unit tests.Karsten Loesing2010-12-03
| |
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-11-29
|\|
| * Report only the top 10 ports in exit-port stats.Karsten Loesing2010-11-24
| |
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2010-11-19
|\| | | | | | | | | Conflicts: src/or/router.c
| * Fix a unit test broken by fix for 2195Nick Mathewson2010-11-19
| |
* | Split long lines in configure.in and Makefile.am filesNick Mathewson2010-11-11
| | | | | | | | | | | | | | | | | | | | Having very long single lines with lots and lots of things in them tends to make files hard to diff and hard to merge. Since our tools are one-line-at-a-time, we should try to construct lists that way too, within reason. This incidentally turned up a few headers in configure.in that we were for some reason searching for twice.
* | Make check-spaces happySebastian Hahn2010-10-14
| |
* | Merge branch 'nodes'Nick Mathewson2010-10-13
|\ \
| * | Implement policies for nodes (and for microdescriptors too)Nick Mathewson2010-10-01
| | |
| * | Rename routerstatus_t.is_running to is_flagged_runningNick Mathewson2010-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was the only flag in routerstatus_t that we would previously change in a routerstatus_t in a consensus. We no longer have reason to do so -- and probably never did -- as you can now confirm more easily than you could have done by grepping for is_running before this patch. The name change is to emphasize that the routerstatus_t is_running flag is only there to tell you whether the consensus says it's running, not whether it *you* think it's running.
* | | Fix running unit tests from outside of the build directory (fixes bug #2051)Steven Murdoch2010-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the unit tests test_util_spawn_background_* assume that they are run from the Tor build directory. This is not the case when running make distcheck, so the test will fail. This problem is fixed by autoconf setting BUILDDIR to be the root of the Tor build directory, and this preprocessor variable being used to specify the absolute path to test-child. Also, in test-child, do not print out argv[0] because this will no longer be predictable. Found by Sebastian Hahn.
* | | Merge remote branch 'sjmurdoch/bug1903'Nick Mathewson2010-10-11
|\ \ \
| * | | Skip running fgets_eagain test until we fix itSteven Murdoch2010-10-11
| | | |