tor/src/test
John Brooks d5a23ce115 Move rend auth cookie en-/decoding to a function
Tor stores client authorization cookies in two slightly different forms.
The service's client_keys file has the standard base64-encoded cookie,
including two chars of padding. The hostname file and the client remove
the two padding chars, and store an auth type flag in the unused bits.

The distinction makes no sense. Refactor all decoding to use the same
function, which will accept either form, and use a helper function for
encoding the truncated format.
2016-05-09 14:28:08 -04:00
..
bench.c Integrate and enable ed25519-donna. 2015-07-06 10:11:10 +00:00
bt_test.py Integrate backtrace test into the automake test suite. 2015-04-23 09:56:25 -04:00
ed25519_exts_ref.py Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
ed25519_vectors.inc Add comments to ed25519_vectors.inc 2014-09-25 15:08:32 -04:00
example_extrainfo.inc Sign extrainfo documents with ed25519 2015-05-28 10:42:22 -04:00
failing_routerdescs.inc Sign extrainfo documents with ed25519 2015-05-28 10:42:22 -04:00
fakechans.h Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
include.am Merge remote-tracking branch 'rl1987/test_dns_resolve_rebased' 2015-08-26 11:32:40 -04:00
Makefile.nmake Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
ntor_ref.py Collect badness values in ntor_ref.py; don't just clobber. 2015-04-09 11:57:55 -04:00
slow_ed25519.py Add a reference implementation of our ed25519 modifications 2014-09-25 15:08:32 -04:00
slownacl_curve25519.py Make the python test scripts work on python3 2014-04-27 22:54:24 -04:00
test_accounting.c Avoid frequent strcmp() calls for AccountingRule 2014-09-29 09:05:11 -04:00
test_addr.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_address.c Remove checks for visual C 6. 2015-06-29 12:55:03 -04:00
test_bt_cl.c Fix crash-test for assertion failure 2015-04-23 10:25:16 -04:00
test_bt.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test_buffers.c Appease make check-spaces 2015-06-01 12:59:14 +00:00
test_cell_formats.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_cell_queue.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_channel.c Fix unit tests on MSVC2013. 2015-05-26 10:34:07 -04:00
test_channeltls.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_checkdir.c Make test_checkdir.c dirent include consistent with other files 2015-08-25 11:46:29 -04:00
test_circuitlist.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_circuitmux.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_config.c Unit tests for consider_adding_dir_servers() as modified in #15642 2015-04-23 00:16:04 +10:00
test_containers.c Fix an overzealous compiler warning in the tests 2015-08-14 08:48:26 -04:00
test_controller_events.c Make the control/events test run TT_FORK 2015-08-18 08:56:23 -04:00
test_controller.c Fix a few more memory leaks; not in any released Tor 2015-05-05 11:08:05 -04:00
test_crypto_slow.c typo fix; spotted by arma 2015-07-20 13:02:21 -04:00
test_crypto.c Break some wide lines 2015-07-16 11:11:21 -04:00
test_data.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_descriptors.inc Move test_descriptors.txt to an include file 2014-07-16 22:37:00 +02:00
test_dir.c Add unit tests for dirserv_set_routerstatus_testing 2015-08-18 21:56:05 +10:00
test_dns.c Fix some memory issues in test_dns.c 2015-08-26 11:41:25 -04:00
test_entryconn.c Make check-spaces happier. 2015-01-19 11:56:03 -05:00
test_entrynodes.c Update entrynodes unit test for dirs 2015-04-01 21:10:39 +02:00
test_extorport.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_guardfraction.c clean up comments and whitespace a bit 2015-02-18 19:27:02 -05:00
test_helpers.c whitespace fixes 2015-02-18 10:55:56 -05:00
test_helpers.h Combine test_helpers.[ch] and testhelper.[ch] 2015-02-18 09:19:38 -05:00
test_hs.c Move rend auth cookie en-/decoding to a function 2016-05-09 14:28:08 -04:00
test_introduce.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_keygen.sh When we infer the master key from the certificate, save it to disk. 2015-08-19 13:36:50 -04:00
test_keypin.c Key-pinning back-end for directory authorities. 2015-05-28 10:41:49 -04:00
test_link_handshake.c More check-spaces fixes 2015-06-01 10:56:54 -04:00
test_logging.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_microdesc.c Fix a leak in test_microdesc (CID 1311631) 2015-07-11 16:47:25 -04:00
test_nodelist.c Merge remote-tracking branch 'public/ticket9969' 2015-01-23 09:36:00 -05:00
test_ntor_cl.c Merge remote-tracking branch 'public/bug9635_warnings_025' 2015-02-02 16:31:32 -05:00
test_ntor.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test_oom.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_options.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_policy.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_pt.c Refactor our logic for sending events to controllers 2015-08-18 08:55:28 -04:00
test_relay.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_relaycell.c Merge branch 'bug8546_squashed' 2015-01-16 09:31:50 -05:00
test_replay.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_routerkeys.c Memory leak in tor_cert_parse. CID 1301382. 2015-05-28 13:11:54 -04:00
test_routerlist.c whitespace fixes 2015-01-23 11:18:28 -05:00
test_routerset.c Replace operators used as macro arguments with OP_XX macros 2014-11-12 13:28:07 -05:00
test_scheduler.c Fix another int-to-ptr cast. 2015-05-29 14:09:11 -04:00
test_slow.c Split the slow unit tests into their own binary 2015-01-23 11:15:53 -05:00
test_socks.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_status.c Merge remote-tracking branch 'public/feature15212_026' into maint-0.2.6 2015-03-12 13:15:08 -04:00
test_threads.c Use thread-local storage to block event_queue recursion. 2015-08-18 08:56:23 -04:00
test_util_slow.c Implement "TOR_PT_EXIT_ON_STDIN_CLOSE". 2015-03-26 12:55:12 +00:00
test_util.c Fix a bunch of check-spaces complaints 2015-08-21 10:36:53 -04:00
test_workqueue.c Fix a bunch of check-spaces complaints 2015-08-21 10:36:53 -04:00
test_zero_length_keys.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test-child.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test-memwipe.c Fix a sizeof(ptr) mistake in test-memwipe.c 2015-05-29 13:50:12 -04:00
test-network.sh When building with coverage, run chutney with coverage 2015-08-03 13:23:58 -04:00
test.c Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl(). 2015-08-23 16:02:39 +03:00
test.h Fix an overzealous compiler warning in the tests 2015-08-14 08:48:26 -04:00
testing_common.c Refactor initialization logic for control-event-queue 2015-08-18 08:56:23 -04:00
zero_length_keys.sh Integrate zero_length_keys test into the automake test suite. 2015-04-23 09:56:12 -04:00