summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2015-05-28Sign extrainfo documents with ed25519Nick Mathewson
Extrainfo documents are now ed-signed just as are router descriptors, according to proposal 220. This patch also includes some more tests for successful/failing parsing, and fixes a crash bug in ed25519 descriptor parsing.
2015-05-28Revise makedesc.py: teach it how to emit ed signatures and crosscertsNick Mathewson
Also, add a trivial ed25519-signed routerinfo to the tests.
2015-05-28Fix memory leaks in test_link_handshake.cNick Mathewson
2015-05-28Tests for AUTHENTICATE cell functionality.Nick Mathewson
2015-05-28Start testing cell encoders/processers for the v3 handshake.Nick Mathewson
An earlier version of these tests was broken; now they're a nicer, more robust, more black-box set of tests. The key is to have each test check a handshake message that is wrong in _one_ way.
2015-05-28Include ed25519 keys in microdescriptors.Nick Mathewson
2015-05-28Fix the position-check for ed25519 certs to work with annotationsNick Mathewson
When there are annotations on a router descriptor, the ed25519-identity element won't be at position 0 or 1; it will be at router+1 or router-1. This patch also adds a missing smartlist function to search a list for an item with a particular pointer.
2015-05-28Key-pinning back-end for directory authorities.Nick Mathewson
This module implements a key-pinning mechanism to ensure that it's safe to use RSA keys as identitifers even as we migrate to Ed25519 keys. It remembers, for every Ed25519 key we've seen, what the associated Ed25519 key is. This way, if we see a different Ed25519 key with that RSA key, we'll know that there's a mismatch. We persist these entries to disk using a simple format, where each line has a base64-encoded RSA SHA1 hash, then a base64-endoded Ed25519 key. Empty lines, misformed lines, and lines beginning with a # are ignored. Lines beginning with @ are reserved for future extensions.
2015-05-28Implement proposal 228: cross-certification with onion keysNick Mathewson
Routers now use TAP and ntor onion keys to sign their identity keys, and put these signatures in their descriptors. That allows other parties to be confident that the onion keys are indeed controlled by the router that generated the descriptor.
2015-05-28Implement ed25519-signed descriptorsNick Mathewson
Now that we have ed25519 keys, we can sign descriptors with them and check those signatures as documented in proposal 220.
2015-05-28prop220: Implement certificates and key storage/creationNick Mathewson
For prop220, we have a new ed25519 certificate type. This patch implements the code to create, parse, and validate those, along with code for routers to maintain their own sets of certificates and keys. (Some parts of master identity key encryption are done, but the implementation of that isn't finished)
2015-02-24Update test_status.c to accommodate changes in heartbeat messagesNick Mathewson
Fixes #15012; bug not in any released Tor
2015-02-23Remove lingering mempool codecypherpunks
2015-02-23Fix endianness issues in test_config_resolve_my_address().rl1987
Since resolve_my_address() yields IP address in host order there is no need to use byteorder functions for conversion.
2015-02-18clean up comments and whitespace a bitRoger Dingledine
2015-02-18whitespace fixesNick Mathewson
2015-02-18Combine test_helpers.[ch] and testhelper.[ch]Nick Mathewson
2015-02-18Merge branch 'bug9321_rerebase'Nick Mathewson
Conflicts: src/or/dirvote.h src/test/include.am src/test/test_entrynodes.c
2015-02-18Add unittests for the guardfraction feature.George Kadianakis
2015-02-18Unittest prep: Move get_yesterday_date_str() to helper file.George Kadianakis
We want to use this function in our guardfraction unittests, so make a test_helpers module and move it there.
2015-02-17Use --list-fingerprint instead of process control in zero_length_keys.shNick Mathewson
Using kill and wait in this way may have been making windows builders unhappy.
2015-02-17Wrap two long linesNick Mathewson
2015-02-16Fix a few coverity "Use after NULL check" warningsNick Mathewson
Also remove the unit test mocks that allowed get_options() to be NULL; that's an invariant violation for get_options().
2015-02-12Merge remote-tracking branch 'sebastian/bug14875'Nick Mathewson
2015-02-12Actually get all interface addressesSebastian Hahn
If we guessed a buffer size too small, we never increased the buffer and tried again Also simplify the interface of ifreq_to_smartlist a little
2015-02-11Merge branch 'bug14478_squashed'Nick Mathewson
2015-02-11Put error messages to stderrSebastian Hahn
Thanks weasel :) Also remove stray debug output
2015-02-11Change exit code of zero_length_keys scriptSebastian Hahn
Weasel notes that exit codes above 128 are for when a script dies from a signal.
2015-02-11Avoid undefined behaviour of testSebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-11Check that mktemp result is a directorySebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-11Clean up after zero length key testSebastian Hahn
2015-02-11Merge remote-tracking branch 'public/remove_freelist'Nick Mathewson
2015-02-11Merge branch 'bug12844'Nick Mathewson
Conflicts: src/or/circuituse.c src/test/include.am src/test/test_entrynodes.c
2015-02-11Remove mempools and buf freelistsNick Mathewson
They have been off-by-default since 0.2.5 and nobody has complained. :) Also remove the buf_shrink() function, which hasn't done anything since we first stopped using contiguous memory to store buffers. Closes ticket 14848.
2015-02-08Avoid calling SMARTLIST_FOREACH on a NULL smartlist in teststeor
Check if each smartlist is NULL before calling SMARTLIST_FOREACH on it. Bug discovered by the clang static analyzer. Apple clang 600.0.56 (LLVM 3.5svn) on x86_64-apple-darwin14.1.0.
2015-02-06Remove useless export in zero length key testSebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-06Don't use invalid exit values in zero length key testSebastian Hahn
Shell exit values must fall into the range of [0-255], so let's honour this. In practice, the "exit -1" from the old code set an exit value of 255 on most systems, so let's pick that. Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-06Merge remote-tracking branch 'sebastian/bug13993'Nick Mathewson
2015-02-06Fix check-spaces complaintsSebastian Hahn
2015-02-06Add unit test for #13290Sebastian Hahn
2015-02-03fix a unit tests memory leak (my fault)Nick Mathewson
2015-02-02Merge remote-tracking branch 'public/bug9635_warnings_025'Nick Mathewson
Conflicts: src/test/test.c
2015-02-02Test for 13865.rl1987
2015-01-30Merge remote-tracking branch 'public/prop227_v2'Nick Mathewson
Conflicts: src/test/test_dir.c
2015-01-29Correctly reject packages lines with empty entriesNick Mathewson
2015-01-23Try to fix some more memory leaks in the unit testsNick Mathewson
2015-01-23Fix some memory leaks in new address testsNick Mathewson
2015-01-23whitespace fixesNick Mathewson
2015-01-23Split the slow unit tests into their own binaryNick Mathewson
This can run in parallel with the faster ones and the other tests.
2015-01-23Merge branch 'if_addr_refactoring_squashed'Nick Mathewson
Conflicts: src/test/include.am src/test/test.c