aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Expand)AuthorAge
* Merge branch 'bug4900_siphash_v2'Nick Mathewson2014-02-15
|\
| * Randomize the global siphash key at startup•••This completes our conversion to using siphash for our hash functions. Nick Mathewson2014-02-12
| * Tests for siphash, from reference implementation.Nick Mathewson2014-02-12
* | fix a whitespace snafuNick Mathewson2014-02-14
* | Free leakable values in the unit tests.•••Thanks, Coverity! (CID 1171414, 1171415, 1171416) Nick Mathewson2014-02-11
|/
* Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2014-02-07
|\
| * Survive fedora's openssl in our benchmarks•••Apparently fedora currently has ECDH but not P224. This isn't a huge deal, since we no longer use OpenSSL's P224 ever (see #9780 and 72c1e5acfe1c6). But we shouldn't have segfaulting benchmarks really. Fixes bug 10835; bugfix on 0.2.4.8-alpha. Nick Mathewson2014-02-07
* | Use the right functions; strncpy is usually not the answerNick Mathewson2014-02-07
* | add test case for node_get_verbose_nicknameQingping Hou2014-02-06
* | add test for node_get_verbose_nickname_by_idQingping Hou2014-02-06
* | remove node_describe_by_id() function•••This function is not used anymore Qingping Hou2014-02-06
* | fix longname returned in HS_DESC control events•••According to control spec, longname should not contain any spaces and is consists only of identy_digest + nickname added two functions: * node_get_verbose_nickname_by_id() * node_describe_longname_by_id() Qingping Hou2014-02-06
* | Rename sun to s_un in test_addr.c•••Apparently the compiler on solaris 9 didn't like "sun" as an identifier. Fix for bug 10565; bugfix on 0.2.5.1-alpha. Nick Mathewson2014-02-06
* | Distcheck repair: add new python testing code to "tarballs"•••'make distcheck' now passes again. Nick Mathewson2014-02-04
* | test_config.c: log which address should have failedNick Mathewson2014-02-03
* | Clean up test_hs.c: warning fix; tor_free() usage.•••My OSX laptop rightly gave a warning because of sticking strlen() into an int, but once I took a closer look... it appears that the strlen() was part of a needlessly verbose implementation for tor_strdup(). While I was there, I fixed the usage of tor_free() in test_hs.c: It checks for NULL, and it zeros its argument. So instead of if (foo) { tor_free(foo); foo = NULL; } we should just say tor_free(foo); Nick Mathewson2014-02-03
* | More fixes to rip out all of the v2 directory code.•••(This was a squash commit, but I forgot to squash it. Sorry! --Nick) Karsten Loesing2014-02-03
* | check-spaces fixes for test_router.cNick Mathewson2014-02-03
* | Merge remote-tracking branch 'houqp/hs_control'Nick Mathewson2014-02-03
|\ \
| * | add test case for node_describe_by_idQingping Hou2014-01-29
| * | add test case for hidden service async eventsQingping Hou2014-01-29
* | | slownacl's pure-python curve25519 lets us test ntor everywhere.•••Improvement on f308adf8382bc7e61ea05a172, where we made the ntor unit tests run everywhere... so long as a python curve25519 module was installed. Now the unit tests don't require that module. Nick Mathewson2014-02-03
* | | Rip out all of the v2 directory code.•••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. Nick Mathewson2014-01-29
|/ /
* | Coverate in util.c: test that tor_parse_* rejects negative base.Nick Mathewson2014-01-17
* | Add an --accel switch to run unit tests with crypto accelerationNick Mathewson2014-01-17
* | Merge remote-tracking branch 'origin/maint-0.2.4'•••Conflicts: src/or/microdesc.c Conflict because one change was on line adjacent to line where 01206893 got fixed. Nick Mathewson2013-12-17
|\|
| * Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4Nick Mathewson2013-12-17
| |\
| | * Avoid free()ing from an mmap on corrupted microdesc cache•••The 'body' field of a microdesc_t holds a strdup()'d value if the microdesc's saved_location field is SAVED_IN_JOURNAL or SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the microdesc is SAVED_IN_CACHE. But we weren't setting that field until a while after we parsed the microdescriptor, which left an interval where microdesc_free() would try to free() the middle of the mmap(). This patch also includes a regression test. This is a fix for #10409; bugfix on 0.2.2.6-alpha. Nick Mathewson2013-12-16
* | | Add checks to prevent memcmp(.,.,negative) in tests (CID 1064417)Nick Mathewson2013-11-22
* | | Fix another unit test memory leak. CID1087949,CID1087950.Nick Mathewson2013-11-22
* | | Fix a bunch of coverity-spotted unit test resource leaks•••CIDs: 1130994, 1130993, 1130992, 1130991 Nick Mathewson2013-11-22
* | | Remove needless fd var from test. CID 1130989.Nick Mathewson2013-11-22
* | | Whitespace cleanupNick Mathewson2013-11-20
* | | Fix crypto/digests testNick Mathewson2013-11-18
* | | Merge branch 'finish_prop157'Nick Mathewson2013-11-18
|\ \ \
| * | | Make the dir-key-crosscert element required•••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. Nick Mathewson2013-11-14
| |/ /
* | | Fix whitespaceNick Mathewson2013-11-18
* | | Merge branch 'backtrace_squashed'•••Conflicts: src/common/sandbox.c src/common/sandbox.h src/common/util.c src/or/main.c src/test/include.am src/test/test.c Nick Mathewson2013-11-18
|\ \ \
| * | | Tests for backtrace.c•••These need to be a separate executable, since the point of backtrace.c is that it can crash and write stuff. Nick Mathewson2013-11-18
| * | | Unit tests for new functions in log.cNick Mathewson2013-11-18
| * | | Add a signal-safe decimal formatting functionNick Mathewson2013-07-19
* | | | Fix test_cmdline_args to work with old openssl•••If openssl was old, Tor would add a warning about its version in between saying "no torrc found, using reasonable defaults" and "configuration was valid". Nick Mathewson2013-11-11
* | | | Documentation and tests for 10060Nick Mathewson2013-11-07
* | | | Merge branch 'morestats4' into morestats5•••Conflicts: doc/tor.1.txt src/or/config.c src/or/connection.h src/or/control.c src/or/control.h src/or/or.h src/or/relay.c src/or/relay.h src/test/test.c Karsten Loesing2013-10-28
|\ \ \ \
| * | | | squash! Pass const uint64_t pointers, document array length.•••Don't cast uint64_t * to const uint64_t * explicitly. The cast is always safe, so C does it for us. Doing the cast explitictly can hide bugs if the input is secretly the wrong type. Suggested by Nick. Karsten Loesing2013-10-28
| * | | | Pass const uint64_t pointers, document array length.•••Suggested by nickm. Karsten Loesing2013-09-12
| * | | | Pass around const struct timeval * instead of struct timeval.•••Suggested by nickm. Karsten Loesing2013-09-12
| * | | | Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing2013-05-31
* | | | | Make test_cmdline_args.py work with older pythons•••I was using the assertIn() function on unit tests, which Python 2.7 introduced. But we'd like to be able to run our unit tests on Pythons from older operating systems. Nick Mathewson2013-10-21
* | | | | Fix out-of-tree "make check-local"Nick Mathewson2013-10-11