summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2016-05-16Cover all our DH code, and/or mark it unreachable.Nick Mathewson
2016-05-16At long last, unit tests for degenerate DH public keys.Nick Mathewson
Apparently, we detect and reject them correctly. Aren't you glad?
2016-05-16Slight improvements to DH coverage.Nick Mathewson
2016-05-16Improve test coverage of our strongest-rng code.Nick Mathewson
2016-05-16Test coverage on ed25519 load/store functions.Nick Mathewson
2016-05-16Mark unreachable lines in crypto_curve25519.cNick Mathewson
Also, resolve a bug in test_ntor_cl.c
2016-05-16HKDF-SHA256 test vectors from RFC5869Nick Mathewson
2016-05-03Ed25519 test vectors from draft-irtf-cfrg-eddsa-05Nick Mathewson
2016-05-03Add test vector for AES_CTR from NIST SP800-38a sec F.5Nick Mathewson
2016-05-03Add test vector for Curve25519 from RFC7748Nick Mathewson
2016-05-03tests for some of the simpler functions in crypto.cNick Mathewson
2016-05-03White-box tests for crypto_rand_*_range(), rand_hostname().Nick Mathewson
Coverage-driven; part of ticket 16794.
2016-05-02test_bt.sh: Check stderr for backtrace as well as stdout.Nick Mathewson
addresssanitizer likes to put backtraces on stderr.
2016-04-25Remove redundant declarations of MINNick Mathewson
Apparently somewhere along the line we decided that MIN might be missing. But we already defined it (if it was missing) in compat.h, which everybody includes. Closes ticket 18889.
2016-04-19Merge branch 'handles_squashed'Nick Mathewson
2016-04-19Basic 'handle' implementation and tests.Nick Mathewson
This abstraction covers the case where one part of the program needs to refer to another object that is allowed to disappear.
2016-04-13fix typos/etc before i go nuts on #18809Roger Dingledine
2016-04-12Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-07Turn TestingClientBootstrap* into non-testing optionsDavid Goulet
This changes simply renames them by removing "Testing" in front of them and they do not require TestingTorNetwork to be enabled anymore. Fixes #18481 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-07When we get a bad nickname, explain what a good one is.Nick Mathewson
Closes #18300; patch from "icanhasaccount".
2016-04-05Don't call the system toupper or tolower.Nick Mathewson
Yes, we could cast to unsigned char first, but it's probably safest to just use our own (in test_util), or remove bad-idea features that we don't use (in readpassphrase.c). Fixes 18728.
2016-03-28One more test that didnt pass on windows. See #18665.Nick Mathewson
2016-03-26Whitespace fixesNick Mathewson
2016-03-25Disable failing broken time format case for windows.Nick Mathewson
2016-03-24try to fix a test failure for sizeof(time_t)==4.Nick Mathewson
2016-03-24Merge branch 'timegm_overflow_squashed'Nick Mathewson
2016-03-24Add a missing UL on a long in a unit testteor (Tim Wilson-Brown)
2016-03-24Add unit tests with dates from 2035 to 2039teor (Tim Wilson-Brown)
Platforms with 32-bit time_t sometimes give different results. They don't always indicate failure on overflow, #18480 should fix these.
2016-03-22Try to fix an intermittent test failure on openbsd.Nick Mathewson
2016-03-22Never use sprintf. tor_snprintf instead. Bug in tests, not in any released tor.Nick Mathewson
2016-03-21Merge remote-tracking branch 'arma/ticket18332-try3'Nick Mathewson
2016-03-21Merge branch 'bug18570_027'Nick Mathewson
2016-03-21Add new channel/queue_incoming unit tests; modify channel unit tests for new ↵Andrea Shepard
clarified handling of alloc/free responsibility for queued incoming cells
2016-03-21test_options.c: assert that TransProxyType is testedSteven Chamberlain
If a new platform defines USE_TRANSPARENT, ensure that a test runs for its TransProxyType.
2016-03-17test_options.c: NULL a pointer after free #18447Steven Chamberlain
tdata will be double-freed if none of linux, __FreeBSD__, DARWIN or __OpenBSD__ are defined. (For example, FreeBSD derivatives).
2016-03-15Merge remote-tracking branch 'weasel/bug18458'Nick Mathewson
2016-03-11simplify rend_cache_store_status_t back to a booleanRoger Dingledine
it used to be a tri-state, but now it's just a bi-state, so we can take out all the machinery like the enum.
2016-03-11rip out hid_serv_acting_as_directory()Roger Dingledine
When we made HidServDirectoryV2 always 1, we removed the situation where a relay could choose not to be an HSDir. Now simplify the rest of the code to reflect this decision. (We have to remove two apparently unrelated free() calls in the unit tests, since they used to free stuff that we created as a side effect of calling router_get_my_routerinfo(), and now we no longer call that.)
2016-03-11rip out hid_serv_responsible_for_desc_id()Roger Dingledine
This simplifies relay behavior, because the relay offers the hsdir functionality independent of whether the directory authorities have decided this relay is suitable for clients to use yet. Implements ticket 18332.
2016-03-11Merge remote-tracking branch 'public/bug18204_028'Nick Mathewson
2016-03-11Add changes file for 18448; refactorNick Mathewson
(I've made it so FreeBSD || FreeBSD_kernel is enough to ensure that we think you might have ipfw, and so that the logic is all in one place.)
2016-03-11enable and test transproxy on FreeBSD derivatives #18448Steven Chamberlain
The transproxy feature is only enabled when __FreeBSD__ is defined, and only regular FreeBSD does that. Change this to __FreeBSD_kernel__ which is defined on derivatives as well. This enables the relevant options/validate__transproxy test on FreeBSD derivatives.
2016-03-11Do not link tests against both libor.a and libor-testing.aNick Mathewson
Also, put libor-testing.a at a better position in the list of libraries, to avoid linker errors. This is a fix, or part of a fix, for 18490.
2016-03-01First RelaxDirModeCheck implementationPeter Palfrader
2016-02-28Use the kdf_rfc5869() function instead of kdf().Alexander Færøy
This patch fixes an issue in "ntor_ref.py gen_kdf_vectors" where the script tries to call the undefined function kdf().
2016-02-27Update the copyright year.Nick Mathewson
2016-02-24Fix a huge number of leaks in test_config.cNick Mathewson
I no longer see asan reporting memory leaks in the unit tests.
2016-02-24Fix memory leaks in routerlist/pick_directory_server_impl testNick Mathewson
2016-02-24Fix a leak in test_have_enough_mem_for_dircacheNick Mathewson
2016-02-24Remove the freelist from memarea.cNick Mathewson
This is in accordance with our usual policy against freelists, now that working allocators are everywhere. It should also make memarea.c's coverage higher. I also doubt that this code ever helped performance.