summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2011-06-14Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-06-09Upgrade to the latest version of tinytestNick Mathewson
2011-06-08Prefer tt_assert in unit tests, not tor_assertNick Mathewson
2011-06-08Check some more return values in unit testsSebastian Hahn
2011-06-08Fix a minor coverity-found bug in testsSebastian Hahn
2011-06-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-06-03Reject 128-byte keys that are not 1024-bitNick Mathewson
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.
2011-05-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-23Fix GCC 4.6's new -Wunused-but-set-variable warnings.Nick Mathewson
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.
2011-05-15Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-15Add a function to pull off the final component of a pathNick Mathewson
2011-05-15Fixup whitespace issues from 3122 commit in 0.2.3Nick Mathewson
2011-05-11Merge remote-tracking branch 'public/bug3122_memcmp_022' into bug3122_memcmp_023Nick Mathewson
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
2011-05-11fwd-port test_util_di_ops into tinytest formatNick Mathewson
2011-05-06Link to libevent_openssl statically when requestedSebastian Hahn
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.
2011-05-04Use read_all() to read messages from spawn_backgroundNick Mathewson
Using read() is an invitation to get some of the data you want, not all. Possible fix for bug 2462
2011-05-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/microdesc.c
2011-04-19Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-19Standardize our printf code on %d, not %i.Nick Mathewson
2011-04-07Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-07Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittestsGisle Vanem
2011-03-16Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/common/crypto.c
2011-03-16Clean up whitespaceNick Mathewson
2011-01-24Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2011-01-24Make the DH parameter we use for TLS match the one from Apache's mod_sslNick Mathewson
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.
2011-01-15Merge branch 'maint-0.2.2'Roger Dingledine
2011-01-15Sanity-check consensus param valuesSebastian Hahn
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.
2011-01-15Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2011-01-15Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
Conflicts: src/or/routerparse.c src/or/test.c
2011-01-15Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2011-01-15Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
Conflicts: src/or/config.c src/or/networkstatus.c src/or/rendcommon.c src/or/routerparse.c src/or/test.c
2011-01-03Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2011-01-03Merge remote branch 'sebastian/bug2314' into maint-0.2.2Nick Mathewson
2011-01-03Bump copyright statements to 2011 (master)Nick Mathewson
2011-01-03Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2011-01-03Bump copyright statements to 2011 (0.2.2)Nick Mathewson
2011-01-03Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-12-27Fix compile wanrings revealed by gcc 4.5 on mingwSebastian Hahn
2010-12-03Write bidirectional connection stats in single line.Karsten Loesing
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.
2010-12-03Refactor conn stats and add unit tests.Karsten Loesing
2010-11-29Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-11-24Report only the top 10 ports in exit-port stats.Karsten Loesing
2010-11-19Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/router.c
2010-11-19Fix a unit test broken by fix for 2195Nick Mathewson
2010-11-11Split long lines in configure.in and Makefile.am filesNick Mathewson
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.
2010-10-14Make check-spaces happySebastian Hahn
2010-10-13Merge branch 'nodes'Nick Mathewson
2010-10-11Fix running unit tests from outside of the build directory (fixes bug #2051)Steven Murdoch
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.
2010-10-11Merge remote branch 'sjmurdoch/bug1903'Nick Mathewson
2010-10-11Skip running fgets_eagain test until we fix itSteven Murdoch