tor/src/test
Nick Mathewson 80d3887360 Refactor node lookup APIs to take flags
Right now there's a single warn_if_unnamed flag for
router_get_consensus_status_by_nickname() and
node_get_by_nickname(), that is nearly always 1.  I've turned it
into an 'unsigned' bitfield, and inverted its sense.  I've added the
flags argument to node_get_by_hex_id() too, though it does nothing
there right now.

I've removed the router_get_consensus_status_by_nickname() function,
since it was only used in once place.

This patch changes the warning behavior of GETINFO ns/name/<name>,
since all other name lookups from the controller currently warn.

Later I'm going to add more flags, for ed25519 support.
2017-08-22 19:13:40 -04:00
..
fuzz Remove hardwired libfuzzer path; closes 22105. 2017-06-19 15:35:46 -04:00
bench.c Use atomic counters for compressor allocation. 2017-04-25 10:29:07 -04:00
bt_test.py Run the copyright update script. 2017-03-15 16:13:17 -04:00
ed25519_exts_ref.py Don't double hash the ed25519 blind key parameter. 2017-08-08 20:29:34 -04:00
ed25519_vectors.inc Don't double hash the ed25519 blind key parameter. 2017-08-08 20:29:34 -04:00
example_extrainfo.inc Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
failing_routerdescs.inc Sign extrainfo documents with ed25519 2015-05-28 10:42:22 -04:00
fakechans.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_static_testcases.sh Run the copyright update script. 2017-03-15 16:13:17 -04:00
hs_build_address.py prop224: Service address creation/validation 2017-07-13 16:49:44 -04:00
hs_ntor_ref.py Make the hs_ntor_ref logic more correct when there is no sha3 module 2017-08-02 12:44:46 -04:00
hs_test_helpers.c test: Fix prop224 HS descriptor to use subcredential 2017-08-08 20:29:34 -04:00
hs_test_helpers.h test: Fix prop224 HS descriptor to use subcredential 2017-08-08 20:29:34 -04:00
include.am Merge branch 'ticket20657_nickm_bugfixes_squashed' 2017-08-08 20:31:57 -04:00
log_test_helpers.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
log_test_helpers.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
Makefile.nmake Merge branch 'netflow_padding-v6-rebased2-squashed' 2017-05-08 13:54:59 -04:00
ntor_ref.py Run the copyright update script. 2017-03-15 16:13:17 -04:00
rend_test_helpers.c test: Move some test code to test helpers. 2017-07-07 11:12:26 -04:00
rend_test_helpers.h test: Move some test code to test helpers. 2017-07-07 11:12:26 -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
sr_commit_calc_ref.py test: Fix shared random unit test for big endian 2016-08-26 14:46:29 -04:00
sr_srv_calc_ref.py prop250: Add unit tests 2016-07-01 14:01:41 -04:00
test_accounting.c Added AccountRule in and AccountingRule out options 2016-01-08 15:52:10 -08:00
test_addr.c Merge branch 'maint-0.3.0' into maint-0.3.1 2017-07-05 13:43:31 -04:00
test_address.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_bt_cl.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_bt.sh More coverage in backtrace.c 2016-06-20 10:31:36 -04:00
test_buffers.c unit tests for peek_buf_startswith() 2017-06-21 11:20:33 -04:00
test_cell_formats.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_cell_queue.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_channel.c Extract channel_do_open_actions() from non-open _change_state cases 2017-06-21 14:03:00 -04:00
test_channelpadding.c Demote a log message due to libevent delays. 2017-06-26 11:26:59 -04:00
test_channeltls.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_checkdir.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_circuitbuild.c Capture expected log in test_circuitbuild.c 2017-04-03 15:24:59 -04:00
test_circuitlist.c prop224 tests: Remove useless NULL check before circuit_free(). 2017-04-17 16:36:55 +03:00
test_circuitmux.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_circuituse.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_compat_libevent.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_config.c Fix memory leak of "torrcd" in test_config_include_folder_order() 2017-08-04 13:50:27 -04:00
test_connection.c test: Move some test code to test helpers. 2017-07-07 11:12:26 -04:00
test_connection.h test: Move some test code to test helpers. 2017-07-07 11:12:26 -04:00
test_conscache.c New force-delete option on consensus_cache_delete_pending() 2017-04-27 21:40:13 -04:00
test_consdiff.c Make consdiff tests pass on OS X too 2017-07-10 15:27:01 -04:00
test_consdiffmgr.c Queue consensus diffs at LOW priority. 2017-07-27 16:28:59 -04:00
test_containers.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
test_controller_events.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_controller.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_crypto_openssl.c Remove openssl/evp.h dependency from test_crypto.c 2017-03-31 10:04:44 -04:00
test_crypto_slow.c Merge branch 'maint-0.3.0' into maint-0.3.1 2017-07-14 09:11:14 -04:00
test_crypto.c Rename the hybrid_encrypt/decrypt functions; label them as dangerous 2017-07-24 14:34:53 -04:00
test_data.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_descriptors.inc Move test_descriptors.txt to an include file 2014-07-16 22:37:00 +02:00
test_dir_common.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_dir_common.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_dir_handle_get.c Test fix: always set address in new_dir_conn() 2017-05-15 18:00:38 -04:00
test_dir.c Merge branch 'bug17750_029_squashed' 2017-07-14 15:07:09 -04:00
test_dns.c DefecTor countermeasure: change server- and client-side DNS TTL clipping 2017-01-18 08:55:57 -05:00
test_entryconn.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_entrynodes.c Merge branch 'maint-0.3.0' into maint-0.3.1 2017-06-29 15:57:48 -04:00
test_extorport.c Clean up mentions of 'zlib' and rename the mentions to 'compressed'. 2017-04-27 15:51:14 +02:00
test_guardfraction.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_handles.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_helpers.c test: Add HS v2 service configuration unit tests 2017-07-13 16:49:08 -04:00
test_helpers.h test: Add HS v2 service configuration unit tests 2017-07-13 16:49:08 -04:00
test_hs_cache.c test: Fix prop224 HS descriptor to use subcredential 2017-08-08 20:29:34 -04:00
test_hs_cell.c prop224 tests: test_gen_establish_intro_cell() check cell contents. 2017-08-08 20:29:34 -04:00
test_hs_client.c Fix a couple of clang warnings 2017-07-07 11:32:15 -04:00
test_hs_common.c fix another 32-bit warning 2017-08-09 08:32:39 -04:00
test_hs_config.c Merge branch 'ticket20657_nickm_bugfixes_squashed' 2017-08-08 20:31:57 -04:00
test_hs_descriptor.c test: Fix prop224 HS descriptor to use subcredential 2017-08-08 20:29:34 -04:00
test_hs_intropoint.c prop224: Fix coverity warnings from #20657 merge. 2017-08-09 13:49:12 +03:00
test_hs_ntor_cl.c prop224: Add Python integration tests for HS ntor. 2017-04-13 09:22:19 -04:00
test_hs_ntor.c test: Add test_hs_ntor unit tests 2017-08-08 20:29:34 -04:00
test_hs_ntor.sh prop224: Add Python integration tests for HS ntor. 2017-04-13 09:22:19 -04:00
test_hs_service.c Set formerly-unused fields of a stack-allocated routerinfo 2017-08-09 13:49:34 -04:00
test_hs.c Merge branch 'maint-0.3.1' 2017-07-28 09:54:39 -04:00
test_introduce.c Rename the hybrid_encrypt/decrypt functions; label them as dangerous 2017-07-24 14:34:53 -04:00
test_key_expiration.sh routerkeys: Add cmdline option for learning signing key expiration. 2017-08-03 22:20:02 +00:00
test_keygen.sh Fix windows test_keygen.sh. This time I think I have it! 2015-09-03 15:23:10 -04:00
test_keypin.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_link_handshake.c Merge branch 'maint-0.3.0' into maint-0.3.1 2017-07-14 09:06:44 -04:00
test_logging.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_microdesc.c Remove some now-needless openssl includes from src/test. 2017-03-31 10:04:44 -04:00
test_nodelist.c Unit tests for maintaining ed25519->node map. 2017-08-22 16:12:58 -04:00
test_ntor_cl.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_ntor.sh Add more quotes in the test scripts 2015-09-24 15:25:53 -04:00
test_oom.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_oos.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_options.c Test config line parsing errors 2017-05-10 16:51:40 -04:00
test_policy.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_procmon.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_protover.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_pt.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_pubsub.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_relay.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_relaycell.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_rendcache.c test: Move some test code to test helpers. 2017-07-07 11:12:26 -04:00
test_replay.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_routerkeys.c Merge branch 'maint-0.3.0' 2017-06-05 15:52:06 -04:00
test_routerlist.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_routerset.c Refactor node lookup APIs to take flags 2017-08-22 19:13:40 -04:00
test_rust.c Add some Rust utility functions and print support 2017-05-19 08:47:10 -04:00
test_rust.sh use CARGO_HOME instead of HOME when building with rust 2017-07-13 18:12:35 +00:00
test_scheduler.c Extract channel_do_open_actions() from non-open _change_state cases 2017-06-21 14:03:00 -04:00
test_shared_random.c prop224 tests: Improve SRV protocol tests. 2017-08-08 20:29:35 -04:00
test_slow.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_socks.c whitespace fix 2017-06-22 08:16:48 -04:00
test_status.c Merge remote-tracking branch 'public/solaris_warnings_028' 2016-09-11 16:52:24 -04:00
test_storagedir.c Unit tests for labelled storagedir entries 2017-04-06 11:48:41 -04:00
test_switch_id.c mingw fix: avoid "unused var" warning. 2017-07-07 10:54:24 -04:00
test_switch_id.sh Coverage hack for test_switch_id.sh 2016-06-20 11:15:47 -04:00
test_threads.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_tortls.c Mark many private tortls.h APIs as openssl-only. 2017-03-31 10:04:45 -04:00
test_util_format.c Fix some no-longer-reasonable unit tests for base64_decode() 2017-04-10 12:08:31 -04:00
test_util_process.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_util_slow.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test_util.c Merge branch 'maint-0.3.1' 2017-08-08 10:10:52 -04:00
test_workqueue_cancel.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue_efd2.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue_efd.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue_pipe2.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue_pipe.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue_socketpair.sh Add several test scripts wrapping test_workqueue 2016-06-08 17:29:06 -04:00
test_workqueue.c Add support for multi-priority workqueues 2017-07-27 16:28:05 -04:00
test_zero_length_keys.sh Add more quotes in the test scripts 2015-09-24 15:25:53 -04:00
test-child.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test-memwipe.c Use the standard OpenBSD preprocessor definition 2017-02-03 09:37:39 -05:00
test-network.sh Make test-network.sh always call chutney's test-network.sh 2017-03-01 13:28:30 +11:00
test-timers.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
test.c test: Add test_hs_common unit tests 2017-08-08 20:29:34 -04:00
test.h test: Add test_hs_common unit tests 2017-08-08 20:29:34 -04:00
testing_common.c Merge branch 'netflow_padding-v6-rebased2-squashed' 2017-05-08 13:54:59 -04:00
testing_rsakeys.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
vote_descriptors.inc Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
zero_length_keys.sh Integrate zero_length_keys test into the automake test suite. 2015-04-23 09:56:12 -04:00