tor-commits
Threads by month
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
July 2018
- 17 participants
- 1738 discussions
06 Jul '18
commit 50963f36d7c69f3fb51caaf487af8ccc85532d48
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 17:10:22 2018 -0400
Actually sort the lines in src/core/include.am
---
src/core/include.am | 356 ++++++++++++++++++++++++++--------------------------
1 file changed, 178 insertions(+), 178 deletions(-)
diff --git a/src/core/include.am b/src/core/include.am
index 23c283d8d..b35367ccb 100644
--- a/src/core/include.am
+++ b/src/core/include.am
@@ -10,96 +10,96 @@ LIBTOR_APP_A_SOURCES = \
src/app/config/config.c \
src/app/config/confparse.c \
src/app/config/statefile.c \
- src/core/proto/proto_socks.c \
- src/core/proto/protover_rust.c \
- src/core/proto/proto_ext_or.c \
- src/core/proto/proto_cell.c \
- src/core/proto/proto_http.c \
- src/core/proto/proto_control0.c \
- src/core/mainloop/cpuworker.c \
- src/core/mainloop/main.c \
- src/core/mainloop/periodic.c \
- src/core/mainloop/connection.c \
+ src/core/crypto/hs_ntor.c \
src/core/crypto/onion.c \
- src/core/crypto/onion_ntor.c \
- src/core/crypto/relay_crypto.c \
src/core/crypto/onion_fast.c \
- src/core/crypto/hs_ntor.c \
+ src/core/crypto/onion_ntor.c \
src/core/crypto/onion_tap.c \
- src/core/or/scheduler_kist.c \
+ src/core/crypto/relay_crypto.c \
+ src/core/mainloop/connection.c \
+ src/core/mainloop/cpuworker.c \
+ src/core/mainloop/main.c \
+ src/core/mainloop/periodic.c \
+ src/core/or/address_set.c \
+ src/core/or/channel.c \
+ src/core/or/channelpadding.c \
+ src/core/or/channeltls.c \
src/core/or/circuitbuild.c \
- src/core/or/reasons.c \
+ src/core/or/circuitlist.c \
+ src/core/or/circuitmux.c \
+ src/core/or/circuitmux_ewma.c \
src/core/or/circuitstats.c \
src/core/or/circuituse.c \
- src/core/or/scheduler.c \
- src/core/or/circuitmux_ewma.c \
- src/core/or/channelpadding.c \
+ src/core/or/command.c \
+ src/core/or/connection_edge.c \
+ src/core/or/connection_or.c \
+ src/core/or/dos.c \
src/core/or/git_revision.c \
- src/core/or/circuitlist.c \
- src/core/or/circuitmux.c \
src/core/or/policies.c \
- src/core/or/channeltls.c \
+ src/core/or/protover.c \
+ src/core/or/reasons.c \
src/core/or/relay.c \
+ src/core/or/scheduler.c \
+ src/core/or/scheduler_kist.c \
src/core/or/scheduler_vanilla.c \
- src/core/or/connection_edge.c \
- src/core/or/dos.c \
- src/core/or/protover.c \
- src/core/or/address_set.c \
- src/core/or/command.c \
- src/core/or/channel.c \
- src/core/or/connection_or.c \
src/core/or/status.c \
+ src/core/proto/proto_cell.c \
+ src/core/proto/proto_control0.c \
+ src/core/proto/proto_ext_or.c \
+ src/core/proto/proto_http.c \
+ src/core/proto/proto_socks.c \
+ src/core/proto/protover_rust.c \
+ src/feature/api/tor_api.c \
+ src/feature/client/addressmap.c \
+ src/feature/client/bridges.c \
+ src/feature/client/circpathbias.c \
+ src/feature/client/dnsserv.c \
+ src/feature/client/entrynodes.c \
+ src/feature/client/transports.c \
+ src/feature/control/control.c \
+ src/feature/dirauth/keypin.c \
+ src/feature/dircache/conscache.c \
+ src/feature/dircache/consdiffmgr.c \
+ src/feature/dircache/directory.c \
+ src/feature/dircache/dirserv.c \
src/feature/dircommon/consdiff.c \
src/feature/dircommon/fp_pair.c \
src/feature/dircommon/voting_schedule.c \
- src/feature/stats/geoip.c \
- src/feature/stats/rephist.c \
src/feature/hibernate/hibernate.c \
- src/feature/hs_common/shared_random_client.c \
- src/feature/hs_common/replaycache.c \
- src/feature/client/circpathbias.c \
- src/feature/client/bridges.c \
- src/feature/client/entrynodes.c \
- src/feature/client/transports.c \
- src/feature/client/addressmap.c \
- src/feature/client/dnsserv.c \
- src/feature/api/tor_api.c \
- src/feature/nodelist/microdesc.c \
- src/feature/nodelist/routerparse.c \
- src/feature/nodelist/networkstatus.c \
- src/feature/nodelist/nodelist.c \
- src/feature/nodelist/routerset.c \
- src/feature/nodelist/torcert.c \
- src/feature/nodelist/routerlist.c \
- src/feature/nodelist/parsecommon.c \
- src/feature/hs/hs_circuitmap.c \
- src/feature/hs/hs_cell.c \
src/feature/hs/hs_cache.c \
+ src/feature/hs/hs_cell.c \
+ src/feature/hs/hs_circuit.c \
+ src/feature/hs/hs_circuitmap.c \
+ src/feature/hs/hs_client.c \
src/feature/hs/hs_common.c \
+ src/feature/hs/hs_config.c \
src/feature/hs/hs_control.c \
- src/feature/hs/hs_client.c \
- src/feature/hs/hs_intropoint.c \
+ src/feature/hs/hs_descriptor.c \
src/feature/hs/hs_ident.c \
- src/feature/hs/hs_config.c \
+ src/feature/hs/hs_intropoint.c \
src/feature/hs/hs_service.c \
src/feature/hs/hs_stats.c \
- src/feature/hs/hs_descriptor.c \
- src/feature/hs/hs_circuit.c \
- src/feature/dirauth/keypin.c \
+ src/feature/hs_common/replaycache.c \
+ src/feature/hs_common/shared_random_client.c \
+ src/feature/nodelist/microdesc.c \
+ src/feature/nodelist/networkstatus.c \
+ src/feature/nodelist/nodelist.c \
+ src/feature/nodelist/parsecommon.c \
+ src/feature/nodelist/routerlist.c \
+ src/feature/nodelist/routerparse.c \
+ src/feature/nodelist/routerset.c \
+ src/feature/nodelist/torcert.c \
+ src/feature/relay/dns.c \
src/feature/relay/ext_orport.c \
src/feature/relay/router.c \
- src/feature/relay/dns.c \
src/feature/relay/routerkeys.c \
- src/feature/control/control.c \
+ src/feature/rend/rendcache.c \
+ src/feature/rend/rendclient.c \
src/feature/rend/rendcommon.c \
src/feature/rend/rendmid.c \
src/feature/rend/rendservice.c \
- src/feature/rend/rendcache.c \
- src/feature/rend/rendclient.c \
- src/feature/dircache/directory.c \
- src/feature/dircache/conscache.c \
- src/feature/dircache/consdiffmgr.c \
- src/feature/dircache/dirserv.c
+ src/feature/stats/geoip.c \
+ src/feature/stats/rephist.c
#
# Modules are conditionnally compiled in tor starting here. We add the C files
@@ -144,157 +144,157 @@ src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
noinst_HEADERS += \
src/app/config/config.h \
- src/app/config/statefile.h \
+ src/app/config/confparse.h \
src/app/config/or_options_st.h \
src/app/config/or_state_st.h \
- src/app/config/confparse.h \
+ src/app/config/statefile.h \
src/app/main/ntmain.h \
- src/core/proto/proto_ext_or.h \
- src/core/proto/proto_http.h \
- src/core/proto/proto_cell.h \
- src/core/proto/proto_socks.h \
- src/core/proto/proto_control0.h \
- src/core/mainloop/cpuworker.h \
- src/core/mainloop/connection.h \
- src/core/mainloop/periodic.h \
- src/core/mainloop/main.h \
- src/core/crypto/onion_ntor.h \
- src/core/crypto/onion_tap.h \
- src/core/crypto/onion.h \
src/core/crypto/hs_ntor.h \
+ src/core/crypto/onion.h \
src/core/crypto/onion_fast.h \
+ src/core/crypto/onion_ntor.h \
+ src/core/crypto/onion_tap.h \
src/core/crypto/relay_crypto.h \
- src/core/or/edge_connection_st.h \
- src/core/or/connection_edge.h \
- src/core/or/cpath_build_state_st.h \
+ src/core/mainloop/connection.h \
+ src/core/mainloop/cpuworker.h \
+ src/core/mainloop/main.h \
+ src/core/mainloop/periodic.h \
+ src/core/or/addr_policy_st.h \
+ src/core/or/address_set.h \
+ src/core/or/cell_queue_st.h \
+ src/core/or/cell_st.h \
+ src/core/or/channel.h \
+ src/core/or/channelpadding.h \
+ src/core/or/channeltls.h \
+ src/core/or/circuit_st.h \
+ src/core/or/circuitbuild.h \
+ src/core/or/circuitlist.h \
+ src/core/or/circuitmux.h \
+ src/core/or/circuitmux_ewma.h \
src/core/or/circuitstats.h \
- src/core/or/connection_or.h \
- src/core/or/or.h \
+ src/core/or/circuituse.h \
src/core/or/command.h \
- src/core/or/server_port_cfg_st.h \
- src/core/or/port_cfg_st.h \
- src/core/or/scheduler.h \
+ src/core/or/connection_edge.h \
+ src/core/or/connection_or.h \
src/core/or/connection_st.h \
- src/core/or/address_set.h \
- src/core/or/circuitmux.h \
- src/core/or/circuitlist.h \
+ src/core/or/cpath_build_state_st.h \
src/core/or/crypt_path_reference_st.h \
src/core/or/crypt_path_st.h \
- src/core/or/circuitbuild.h \
- src/core/or/circuit_st.h \
- src/core/or/var_cell_st.h \
- src/core/or/entry_connection_st.h \
- src/core/or/cell_st.h \
- src/core/or/socks_request_st.h \
- src/core/or/or_handshake_certs_st.h \
+ src/core/or/destroy_cell_queue_st.h \
src/core/or/dos.h \
- src/core/or/or_connection_st.h \
- src/core/or/protover.h \
- src/core/or/channel.h \
- src/core/or/or_circuit_st.h \
+ src/core/or/edge_connection_st.h \
+ src/core/or/entry_connection_st.h \
src/core/or/entry_port_cfg_st.h \
- src/core/or/channelpadding.h \
- src/core/or/relay_crypto_st.h \
- src/core/or/cell_queue_st.h \
- src/core/or/circuituse.h \
- src/core/or/channeltls.h \
+ src/core/or/extend_info_st.h \
+ src/core/or/git_revision.h \
+ src/core/or/listener_connection_st.h \
+ src/core/or/or.h \
+ src/core/or/or_circuit_st.h \
+ src/core/or/or_connection_st.h \
+ src/core/or/or_handshake_certs_st.h \
src/core/or/or_handshake_state_st.h \
- src/core/or/addr_policy_st.h \
- src/core/or/status.h \
- src/core/or/relay.h \
- src/core/or/circuitmux_ewma.h \
+ src/core/or/origin_circuit_st.h \
src/core/or/policies.h \
+ src/core/or/port_cfg_st.h \
+ src/core/or/protover.h \
src/core/or/reasons.h \
- src/core/or/listener_connection_st.h \
- src/core/or/origin_circuit_st.h \
- src/core/or/destroy_cell_queue_st.h \
+ src/core/or/relay.h \
+ src/core/or/relay_crypto_st.h \
+ src/core/or/scheduler.h \
+ src/core/or/server_port_cfg_st.h \
+ src/core/or/socks_request_st.h \
+ src/core/or/status.h \
src/core/or/tor_version_st.h \
- src/core/or/git_revision.h \
- src/core/or/extend_info_st.h \
+ src/core/or/var_cell_st.h \
+ src/core/proto/proto_cell.h \
+ src/core/proto/proto_control0.h \
+ src/core/proto/proto_ext_or.h \
+ src/core/proto/proto_http.h \
+ src/core/proto/proto_socks.h \
+ src/feature/api/tor_api_internal.h \
+ src/feature/client/addressmap.h \
+ src/feature/client/bridges.h \
+ src/feature/client/circpathbias.h \
+ src/feature/client/dnsserv.h \
+ src/feature/client/entrynodes.h \
+ src/feature/client/transports.h \
+ src/feature/control/control.h \
+ src/feature/control/control_connection_st.h \
+ src/feature/dirauth/dircollate.h \
+ src/feature/dirauth/dirvote.h \
+ src/feature/dirauth/keypin.h \
+ src/feature/dirauth/mode.h \
+ src/feature/dirauth/ns_detached_signatures_st.h \
+ src/feature/dirauth/shared_random.h \
+ src/feature/dirauth/shared_random_state.h \
+ src/feature/dirauth/vote_microdesc_hash_st.h \
+ src/feature/dircache/cached_dir_st.h \
+ src/feature/dircache/conscache.h \
+ src/feature/dircache/consdiffmgr.h \
+ src/feature/dircache/directory.h \
+ src/feature/dircache/dirserv.h \
+ src/feature/dirclient/dir_server_st.h \
+ src/feature/dirclient/download_status_st.h \
src/feature/dircommon/consdiff.h \
- src/feature/dircommon/voting_schedule.h \
src/feature/dircommon/dir_connection_st.h \
src/feature/dircommon/fp_pair.h \
src/feature/dircommon/vote_timing_st.h \
- src/feature/stats/rephist.h \
- src/feature/stats/geoip.h \
+ src/feature/dircommon/voting_schedule.h \
src/feature/hibernate/hibernate.h \
- src/feature/hs_common/shared_random_client.h \
- src/feature/hs_common/replaycache.h \
- src/feature/dirclient/dir_server_st.h \
- src/feature/dirclient/download_status_st.h \
- src/feature/client/transports.h \
- src/feature/client/circpathbias.h \
- src/feature/client/entrynodes.h \
- src/feature/client/addressmap.h \
- src/feature/client/bridges.h \
- src/feature/client/dnsserv.h \
- src/feature/api/tor_api_internal.h \
- src/feature/nodelist/routerparse.h \
- src/feature/nodelist/routerlist.h \
- src/feature/nodelist/signed_descriptor_st.h \
- src/feature/nodelist/routerstatus_st.h \
- src/feature/nodelist/torcert.h \
- src/feature/nodelist/parsecommon.h \
- src/feature/nodelist/networkstatus_sr_info_st.h \
- src/feature/nodelist/microdesc_st.h \
- src/feature/nodelist/nodelist.h \
- src/feature/nodelist/microdesc.h \
- src/feature/nodelist/node_st.h \
- src/feature/nodelist/desc_store_st.h \
- src/feature/nodelist/routerlist_st.h \
- src/feature/nodelist/routerinfo_st.h \
- src/feature/nodelist/document_signature_st.h \
- src/feature/nodelist/vote_routerstatus_st.h \
- src/feature/nodelist/extrainfo_st.h \
- src/feature/nodelist/networkstatus_voter_info_st.h \
- src/feature/nodelist/networkstatus_st.h \
- src/feature/nodelist/authority_cert_st.h \
- src/feature/nodelist/routerset.h \
- src/feature/nodelist/networkstatus.h \
- src/feature/hs/hs_cell.h \
src/feature/hs/hs_cache.h \
+ src/feature/hs/hs_cell.h \
+ src/feature/hs/hs_circuit.h \
+ src/feature/hs/hs_circuitmap.h \
src/feature/hs/hs_client.h \
- src/feature/hs/hs_intropoint.h \
+ src/feature/hs/hs_common.h \
src/feature/hs/hs_config.h \
- src/feature/hs/hs_ident.h \
- src/feature/hs/hs_stats.h \
- src/feature/hs/hs_circuitmap.h \
+ src/feature/hs/hs_control.h \
src/feature/hs/hs_descriptor.h \
+ src/feature/hs/hs_ident.h \
+ src/feature/hs/hs_intropoint.h \
src/feature/hs/hs_service.h \
- src/feature/hs/hs_circuit.h \
- src/feature/hs/hs_control.h \
+ src/feature/hs/hs_stats.h \
src/feature/hs/hsdir_index_st.h \
- src/feature/hs/hs_common.h \
- src/feature/dirauth/mode.h \
- src/feature/dirauth/ns_detached_signatures_st.h \
- src/feature/dirauth/shared_random_state.h \
- src/feature/dirauth/shared_random.h \
- src/feature/dirauth/vote_microdesc_hash_st.h \
- src/feature/dirauth/keypin.h \
- src/feature/dirauth/dircollate.h \
- src/feature/dirauth/dirvote.h \
- src/feature/relay/dns_structs.h \
+ src/feature/hs_common/replaycache.h \
+ src/feature/hs_common/shared_random_client.h \
+ src/feature/nodelist/authority_cert_st.h \
+ src/feature/nodelist/desc_store_st.h \
+ src/feature/nodelist/document_signature_st.h \
+ src/feature/nodelist/extrainfo_st.h \
+ src/feature/nodelist/microdesc.h \
+ src/feature/nodelist/microdesc_st.h \
+ src/feature/nodelist/networkstatus.h \
+ src/feature/nodelist/networkstatus_sr_info_st.h \
+ src/feature/nodelist/networkstatus_st.h \
+ src/feature/nodelist/networkstatus_voter_info_st.h \
+ src/feature/nodelist/node_st.h \
+ src/feature/nodelist/nodelist.h \
+ src/feature/nodelist/parsecommon.h \
+ src/feature/nodelist/routerinfo_st.h \
+ src/feature/nodelist/routerlist.h \
+ src/feature/nodelist/routerlist_st.h \
+ src/feature/nodelist/routerparse.h \
+ src/feature/nodelist/routerset.h \
+ src/feature/nodelist/routerstatus_st.h \
+ src/feature/nodelist/signed_descriptor_st.h \
+ src/feature/nodelist/torcert.h \
+ src/feature/nodelist/vote_routerstatus_st.h \
src/feature/relay/dns.h \
+ src/feature/relay/dns_structs.h \
src/feature/relay/ext_orport.h \
src/feature/relay/router.h \
src/feature/relay/routerkeys.h \
- src/feature/control/control_connection_st.h \
- src/feature/control/control.h \
- src/feature/rend/rendcommon.h \
- src/feature/rend/rendservice.h \
- src/feature/rend/rendcache.h \
- src/feature/rend/rendmid.h \
- src/feature/rend/rend_intro_point_st.h \
src/feature/rend/rend_authorized_client_st.h \
src/feature/rend/rend_encoded_v2_service_descriptor_st.h \
+ src/feature/rend/rend_intro_point_st.h \
src/feature/rend/rend_service_descriptor_st.h \
+ src/feature/rend/rendcache.h \
src/feature/rend/rendclient.h \
- src/feature/dircache/conscache.h \
- src/feature/dircache/cached_dir_st.h \
- src/feature/dircache/dirserv.h \
- src/feature/dircache/directory.h \
- src/feature/dircache/consdiffmgr.h
+ src/feature/rend/rendcommon.h \
+ src/feature/rend/rendmid.h \
+ src/feature/rend/rendservice.h \
+ src/feature/stats/geoip.h \
+ src/feature/stats/rephist.h
noinst_HEADERS += \
src/app/config/auth_dirs.inc \
1
0
commit 8b0920bb6f0d52402026d38dcc8405c0ff263dbb
Merge: 4eac5c6ce 50963f36d
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 18:13:06 2018 -0400
Merge branch 'split_or_directory'
.gitignore | 19 +-
Doxyfile.in | 1156 ++++++++++----------
Makefile.am | 14 +-
configure.ac | 2 +-
contrib/include.am | 1 -
contrib/win32build/package_nsis-mingw.sh | 95 --
doc/HACKING/HelpfulTools.md | 6 +-
doc/HACKING/Module.md | 26 +-
doc/HACKING/Tracing.md | 2 +-
scripts/maint/checkOptionDocs.pl.in | 2 +-
scripts/maint/fallback.whitelist | 3 +-
scripts/maint/updateFallbackDirs.py | 8 +-
scripts/test/coverage | 2 +-
src/{or => app/config}/auth_dirs.inc | 0
src/{or => app/config}/config.c | 90 +-
src/{or => app/config}/config.h | 2 +-
src/{or => app/config}/confparse.c | 6 +-
src/{or => app/config}/confparse.h | 0
src/{or => app/config}/fallback_dirs.inc | 0
src/{or => app/config}/or_options_st.h | 0
src/{or => app/config}/or_state_st.h | 0
src/{or => app/config}/statefile.c | 26 +-
src/{or => app/config}/statefile.h | 0
src/app/include.am | 38 +
src/{or => app/main}/ntmain.c | 8 +-
src/{or => app/main}/ntmain.h | 0
src/{or => app/main}/tor_main.c | 0
src/{or => core/crypto}/hs_ntor.c | 4 +-
src/{or => core/crypto}/hs_ntor.h | 2 +-
src/{or => core/crypto}/onion.c | 34 +-
src/{or => core/crypto}/onion.h | 0
src/{or => core/crypto}/onion_fast.c | 4 +-
src/{or => core/crypto}/onion_fast.h | 0
src/{or => core/crypto}/onion_ntor.c | 2 +-
src/{or => core/crypto}/onion_ntor.h | 0
src/{or => core/crypto}/onion_tap.c | 8 +-
src/{or => core/crypto}/onion_tap.h | 0
src/{or => core/crypto}/relay_crypto.c | 18 +-
src/{or => core/crypto}/relay_crypto.h | 0
src/core/include.am | 326 ++++++
src/{or => core/mainloop}/connection.c | 90 +-
src/{or => core/mainloop}/connection.h | 0
src/{or => core/mainloop}/cpuworker.c | 24 +-
src/{or => core/mainloop}/cpuworker.h | 0
src/{or => core/mainloop}/main.c | 136 +--
src/{or => core/mainloop}/main.h | 2 +-
src/{or => core/mainloop}/periodic.c | 8 +-
src/{or => core/mainloop}/periodic.h | 0
src/{ => core}/or/addr_policy_st.h | 0
src/{ => core}/or/address_set.c | 2 +-
src/{ => core}/or/address_set.h | 0
src/{ => core}/or/cell_queue_st.h | 0
src/{ => core}/or/cell_st.h | 0
src/{ => core}/or/channel.c | 44 +-
src/{ => core}/or/channel.h | 4 +-
src/{ => core}/or/channelpadding.c | 28 +-
src/{ => core}/or/channelpadding.h | 0
src/{ => core}/or/channeltls.c | 56 +-
src/{ => core}/or/channeltls.h | 4 +-
src/{ => core}/or/circuit_st.h | 4 +-
src/{ => core}/or/circuitbuild.c | 92 +-
src/{ => core}/or/circuitbuild.h | 0
src/{ => core}/or/circuitlist.c | 76 +-
src/{ => core}/or/circuitlist.h | 2 +-
src/{ => core}/or/circuitmux.c | 18 +-
src/{ => core}/or/circuitmux.h | 2 +-
src/{ => core}/or/circuitmux_ewma.c | 10 +-
src/{ => core}/or/circuitmux_ewma.h | 4 +-
src/{ => core}/or/circuitstats.c | 34 +-
src/{ => core}/or/circuitstats.h | 0
src/{ => core}/or/circuituse.c | 72 +-
src/{ => core}/or/circuituse.h | 0
src/{ => core}/or/command.c | 46 +-
src/{ => core}/or/command.h | 2 +-
src/{ => core}/or/connection_edge.c | 92 +-
src/{ => core}/or/connection_edge.h | 0
src/{ => core}/or/connection_or.c | 78 +-
src/{ => core}/or/connection_or.h | 0
src/{ => core}/or/connection_st.h | 0
src/{ => core}/or/cpath_build_state_st.h | 0
src/{ => core}/or/crypt_path_reference_st.h | 0
src/{ => core}/or/crypt_path_st.h | 2 +-
src/{ => core}/or/destroy_cell_queue_st.h | 0
src/{ => core}/or/dos.c | 26 +-
src/{ => core}/or/dos.h | 0
src/{ => core}/or/edge_connection_st.h | 4 +-
src/{ => core}/or/entry_connection_st.h | 2 +-
src/{ => core}/or/entry_port_cfg_st.h | 2 +-
src/{ => core}/or/extend_info_st.h | 0
src/{ => core}/or/git_revision.c | 5 +-
src/{ => core}/or/git_revision.h | 0
src/{ => core}/or/listener_connection_st.h | 2 +-
src/{ => core}/or/or.h | 2 +-
src/{ => core}/or/or_circuit_st.h | 6 +-
src/{ => core}/or/or_connection_st.h | 2 +-
src/{ => core}/or/or_handshake_certs_st.h | 0
src/{ => core}/or/or_handshake_state_st.h | 0
src/{ => core}/or/origin_circuit_st.h | 4 +-
src/{ => core}/or/policies.c | 36 +-
src/{ => core}/or/policies.h | 0
src/{ => core}/or/port_cfg_st.h | 4 +-
src/{ => core}/or/protover.c | 6 +-
src/{ => core}/or/protover.h | 0
src/{ => core}/or/reasons.c | 8 +-
src/{ => core}/or/reasons.h | 0
src/{ => core}/or/relay.c | 84 +-
src/{ => core}/or/relay.h | 0
src/{ => core}/or/relay_crypto_st.h | 0
src/{ => core}/or/scheduler.c | 12 +-
src/{ => core}/or/scheduler.h | 4 +-
src/{ => core}/or/scheduler_kist.c | 16 +-
src/{ => core}/or/scheduler_vanilla.c | 8 +-
src/{ => core}/or/server_port_cfg_st.h | 0
src/{ => core}/or/socks_request_st.h | 0
src/{ => core}/or/status.c | 38 +-
src/{ => core}/or/status.h | 0
src/{ => core}/or/tor_version_st.h | 0
src/{ => core}/or/var_cell_st.h | 0
src/{or => core/proto}/proto_cell.c | 8 +-
src/{or => core/proto}/proto_cell.h | 0
src/{or => core/proto}/proto_control0.c | 4 +-
src/{or => core/proto}/proto_control0.h | 0
src/{or => core/proto}/proto_ext_or.c | 6 +-
src/{or => core/proto}/proto_ext_or.h | 0
src/{or => core/proto}/proto_http.c | 4 +-
src/{or => core/proto}/proto_http.h | 0
src/{or => core/proto}/proto_socks.c | 18 +-
src/{or => core/proto}/proto_socks.h | 0
src/{or => core/proto}/protover_rust.c | 4 +-
src/{or => feature/api}/tor_api.c | 4 +-
src/{or => feature/api}/tor_api.h | 0
src/{or => feature/api}/tor_api_internal.h | 0
src/{or => feature/client}/addressmap.c | 22 +-
src/{or => feature/client}/addressmap.h | 0
src/{or => feature/client}/bridges.c | 36 +-
src/{or => feature/client}/bridges.h | 0
src/{or => feature/client}/circpathbias.c | 34 +-
src/{or => feature/client}/circpathbias.h | 0
src/{or => feature/client}/dnsserv.c | 26 +-
src/{or => feature/client}/dnsserv.h | 0
src/{or => feature/client}/entrynodes.c | 56 +-
src/{or => feature/client}/entrynodes.h | 0
src/{or => feature/client}/transports.c | 22 +-
src/{or => feature/client}/transports.h | 0
src/{or => feature/control}/control.c | 116 +-
src/{or => feature/control}/control.h | 0
.../control}/control_connection_st.h | 4 +-
src/{or => feature}/dirauth/dircollate.c | 8 +-
src/{or => feature}/dirauth/dircollate.h | 2 +-
src/{or => feature}/dirauth/dirvote.c | 76 +-
src/{or => feature}/dirauth/dirvote.h | 0
src/{or => feature/dirauth}/keypin.c | 2 +-
src/{or => feature/dirauth}/keypin.h | 0
src/{or => feature}/dirauth/mode.h | 2 +-
.../dirauth}/ns_detached_signatures_st.h | 0
src/{or => feature}/dirauth/shared_random.c | 34 +-
src/{or => feature}/dirauth/shared_random.h | 2 +-
src/{or => feature}/dirauth/shared_random_state.c | 22 +-
src/{or => feature}/dirauth/shared_random_state.h | 2 +-
.../dirauth}/vote_microdesc_hash_st.h | 0
src/{or => feature/dircache}/cached_dir_st.h | 0
src/{or => feature/dircache}/conscache.c | 6 +-
src/{or => feature/dircache}/conscache.h | 0
src/{or => feature/dircache}/consdiffmgr.c | 20 +-
src/{or => feature/dircache}/consdiffmgr.h | 0
src/{or => feature/dircache}/directory.c | 92 +-
src/{or => feature/dircache}/directory.h | 2 +-
src/{or => feature/dircache}/dirserv.c | 80 +-
src/{or => feature/dircache}/dirserv.h | 0
src/{or => feature/dirclient}/dir_server_st.h | 4 +-
src/{or => feature/dirclient}/download_status_st.h | 0
src/{or => feature/dircommon}/consdiff.c | 6 +-
src/{or => feature/dircommon}/consdiff.h | 2 +-
src/{or => feature/dircommon}/dir_connection_st.h | 2 +-
src/{or => feature/dircommon}/fp_pair.c | 4 +-
src/{or => feature/dircommon}/fp_pair.h | 0
src/{or => feature/dircommon}/vote_timing_st.h | 0
src/{or => feature/dircommon}/voting_schedule.c | 10 +-
src/{or => feature/dircommon}/voting_schedule.h | 2 +-
src/{or => feature/hibernate}/hibernate.c | 28 +-
src/{or => feature/hibernate}/hibernate.h | 0
src/{or => feature/hs}/hs_cache.c | 20 +-
src/{or => feature/hs}/hs_cache.h | 8 +-
src/{or => feature/hs}/hs_cell.c | 14 +-
src/{or => feature/hs}/hs_cell.h | 4 +-
src/{or => feature/hs}/hs_circuit.c | 46 +-
src/{or => feature/hs}/hs_circuit.h | 4 +-
src/{or => feature/hs}/hs_circuitmap.c | 12 +-
src/{or => feature/hs}/hs_circuitmap.h | 0
src/{or => feature/hs}/hs_client.c | 60 +-
src/{or => feature/hs}/hs_client.h | 4 +-
src/{or => feature/hs}/hs_common.c | 48 +-
src/{or => feature/hs}/hs_common.h | 2 +-
src/{or => feature/hs}/hs_config.c | 10 +-
src/{or => feature/hs}/hs_config.h | 2 +-
src/{or => feature/hs}/hs_control.c | 20 +-
src/{or => feature/hs}/hs_control.h | 2 +-
src/{or => feature/hs}/hs_descriptor.c | 18 +-
src/{or => feature/hs}/hs_descriptor.h | 4 +-
src/{or => feature/hs}/hs_ident.c | 2 +-
src/{or => feature/hs}/hs_ident.h | 2 +-
src/{or => feature/hs}/hs_intropoint.c | 24 +-
src/{or => feature/hs}/hs_intropoint.h | 2 +-
src/{or => feature/hs}/hs_service.c | 74 +-
src/{or => feature/hs}/hs_service.h | 10 +-
src/{or => feature/hs}/hs_stats.c | 6 +-
src/{or => feature/hs}/hs_stats.h | 0
src/{or => feature/hs}/hsdir_index_st.h | 0
src/{or => feature/hs_common}/replaycache.c | 4 +-
src/{or => feature/hs_common}/replaycache.h | 0
.../hs_common}/shared_random_client.c | 10 +-
.../hs_common}/shared_random_client.h | 2 +-
src/{or => feature/nodelist}/authority_cert_st.h | 2 +-
src/{or => feature/nodelist}/desc_store_st.h | 0
.../nodelist}/document_signature_st.h | 0
src/{or => feature/nodelist}/extrainfo_st.h | 2 +-
src/{or => feature/nodelist}/microdesc.c | 36 +-
src/{or => feature/nodelist}/microdesc.h | 0
src/{or => feature/nodelist}/microdesc_st.h | 0
src/{or => feature/nodelist}/networkstatus.c | 96 +-
src/{or => feature/nodelist}/networkstatus.h | 0
.../nodelist}/networkstatus_sr_info_st.h | 0
src/{or => feature/nodelist}/networkstatus_st.h | 2 +-
.../nodelist}/networkstatus_voter_info_st.h | 0
src/{or => feature/nodelist}/node_st.h | 2 +-
src/{or => feature/nodelist}/nodelist.c | 60 +-
src/{or => feature/nodelist}/nodelist.h | 0
src/{or => feature/nodelist}/parsecommon.c | 2 +-
src/{or => feature/nodelist}/parsecommon.h | 0
src/{or => feature/nodelist}/routerinfo_st.h | 2 +-
src/{or => feature/nodelist}/routerlist.c | 80 +-
src/{or => feature/nodelist}/routerlist.h | 0
src/{or => feature/nodelist}/routerlist_st.h | 2 +-
src/{or => feature/nodelist}/routerparse.c | 80 +-
src/{or => feature/nodelist}/routerparse.h | 0
src/{or => feature/nodelist}/routerset.c | 28 +-
src/{or => feature/nodelist}/routerset.h | 0
src/{or => feature/nodelist}/routerstatus_st.h | 2 +-
.../nodelist}/signed_descriptor_st.h | 2 +-
src/{or => feature/nodelist}/torcert.c | 8 +-
src/{or => feature/nodelist}/torcert.h | 0
.../nodelist}/vote_routerstatus_st.h | 2 +-
src/{or => feature/relay}/dns.c | 28 +-
src/{or => feature/relay}/dns.h | 2 +-
src/{or => feature/relay}/dns_structs.h | 0
src/{or => feature/relay}/ext_orport.c | 18 +-
src/{or => feature/relay}/ext_orport.h | 0
src/{or => feature/relay}/router.c | 82 +-
src/{or => feature/relay}/router.h | 0
src/{or => feature/relay}/routerkeys.c | 10 +-
src/{or => feature/relay}/routerkeys.h | 0
.../rend}/rend_authorized_client_st.h | 0
.../rend}/rend_encoded_v2_service_descriptor_st.h | 0
src/{or => feature/rend}/rend_intro_point_st.h | 0
.../rend}/rend_service_descriptor_st.h | 0
src/{or => feature/rend}/rendcache.c | 18 +-
src/{or => feature/rend}/rendcache.h | 4 +-
src/{or => feature/rend}/rendclient.c | 64 +-
src/{or => feature/rend}/rendclient.h | 2 +-
src/{or => feature/rend}/rendcommon.c | 58 +-
src/{or => feature/rend}/rendcommon.h | 0
src/{or => feature/rend}/rendmid.c | 26 +-
src/{or => feature/rend}/rendmid.h | 0
src/{or => feature/rend}/rendservice.c | 72 +-
src/{or => feature/rend}/rendservice.h | 4 +-
src/{or => feature/stats}/geoip.c | 14 +-
src/{or => feature/stats}/geoip.h | 2 +-
src/{or => feature/stats}/rephist.c | 30 +-
src/{or => feature/stats}/rephist.h | 0
src/include.am | 5 +-
src/or/Makefile.nmake | 79 --
src/or/include.am | 370 -------
src/rust/external/external.rs | 2 +-
src/rust/protover/ffi.rs | 4 +-
src/rust/protover/protover.rs | 12 +-
src/rust/tor_log/tor_log.rs | 2 +-
src/test/bench.c | 18 +-
src/test/fuzz/fuzz_consensus.c | 8 +-
src/test/fuzz/fuzz_descriptor.c | 8 +-
src/test/fuzz/fuzz_diff.c | 4 +-
src/test/fuzz/fuzz_diff_apply.c | 4 +-
src/test/fuzz/fuzz_extrainfo.c | 8 +-
src/test/fuzz/fuzz_hsdescv2.c | 6 +-
src/test/fuzz/fuzz_hsdescv3.c | 6 +-
src/test/fuzz/fuzz_http.c | 10 +-
src/test/fuzz/fuzz_http_connect.c | 14 +-
src/test/fuzz/fuzz_iptsv2.c | 8 +-
src/test/fuzz/fuzz_microdesc.c | 6 +-
src/test/fuzz/fuzz_vrs.c | 12 +-
src/test/fuzz/fuzzing_common.c | 4 +-
src/test/hs_test_helpers.c | 6 +-
src/test/hs_test_helpers.h | 2 +-
src/test/log_test_helpers.h | 2 +-
src/test/rend_test_helpers.c | 10 +-
src/test/rend_test_helpers.h | 2 +-
src/test/test-network.sh | 4 +-
src/test/test.c | 44 +-
src/test/test_accounting.c | 10 +-
src/test/test_addr.c | 4 +-
src/test/test_address.c | 2 +-
src/test/test_address_set.c | 24 +-
src/test/test_bridges.c | 11 +-
src/test/test_bt_cl.c | 2 +-
src/test/test_buffers.c | 6 +-
src/test/test_bwmgt.c | 2 +-
src/test/test_cell_formats.c | 28 +-
src/test/test_cell_queue.c | 14 +-
src/test/test_channel.c | 30 +-
src/test/test_channelpadding.c | 26 +-
src/test/test_channeltls.c | 16 +-
src/test/test_checkdir.c | 4 +-
src/test/test_circuitbuild.c | 10 +-
src/test/test_circuitlist.c | 16 +-
src/test/test_circuitmux.c | 14 +-
src/test/test_circuitstats.c | 24 +-
src/test/test_circuituse.c | 18 +-
src/test/test_compat_libevent.c | 2 +-
src/test/test_config.c | 68 +-
src/test/test_connection.c | 34 +-
src/test/test_conscache.c | 6 +-
src/test/test_consdiff.c | 4 +-
src/test/test_consdiffmgr.c | 18 +-
src/test/test_containers.c | 4 +-
src/test/test_controller.c | 26 +-
src/test/test_controller_events.c | 16 +-
src/test/test_crypto.c | 2 +-
src/test/test_crypto_slow.c | 2 +-
src/test/test_dir.c | 70 +-
src/test/test_dir_common.c | 22 +-
src/test/test_dir_common.h | 6 +-
src/test/test_dir_handle_get.c | 52 +-
src/test/test_dns.c | 14 +-
src/test/test_dos.c | 26 +-
src/test/test_entryconn.c | 22 +-
src/test/test_entrynodes.c | 52 +-
src/test/test_extorport.c | 16 +-
src/test/test_geoip.c | 6 +-
src/test/test_guardfraction.c | 20 +-
src/test/test_helpers.c | 28 +-
src/test/test_helpers.h | 2 +-
src/test/test_hs.c | 28 +-
src/test/test_hs_cache.c | 16 +-
src/test/test_hs_cell.c | 6 +-
src/test/test_hs_client.c | 52 +-
src/test/test_hs_common.c | 42 +-
src/test/test_hs_config.c | 10 +-
src/test/test_hs_control.c | 18 +-
src/test/test_hs_descriptor.c | 6 +-
src/test/test_hs_intropoint.c | 22 +-
src/test/test_hs_ntor.c | 2 +-
src/test/test_hs_ntor_cl.c | 6 +-
src/test/test_hs_service.c | 64 +-
src/test/test_introduce.c | 4 +-
src/test/test_keypin.c | 4 +-
src/test/test_link_handshake.c | 28 +-
src/test/test_logging.c | 4 +-
src/test/test_mainloop.c | 4 +-
src/test/test_microdesc.c | 26 +-
src/test/test_nodelist.c | 20 +-
src/test/test_ntor_cl.c | 4 +-
src/test/test_oom.c | 18 +-
src/test/test_oos.c | 16 +-
src/test/test_options.c | 14 +-
src/test/test_periodic_event.c | 12 +-
src/test/test_policy.c | 20 +-
src/test/test_procmon.c | 2 +-
src/test/test_proto_http.c | 4 +-
src/test/test_proto_misc.c | 14 +-
src/test/test_protover.c | 6 +-
src/test/test_pt.c | 16 +-
src/test/test_relay.c | 14 +-
src/test/test_relaycell.c | 26 +-
src/test/test_relaycrypt.c | 16 +-
src/test/test_rendcache.c | 24 +-
src/test/test_replay.c | 4 +-
src/test/test_router.c | 13 +-
src/test/test_routerkeys.c | 10 +-
src/test/test_routerlist.c | 50 +-
src/test/test_routerset.c | 24 +-
src/test/test_scheduler.c | 14 +-
src/test/test_shared_random.c | 32 +-
src/test/test_slow.c | 2 +-
src/test/test_socks.c | 10 +-
src/test/test_status.c | 28 +-
src/test/test_storagedir.c | 2 +-
src/test/test_switch_id.c | 2 +-
src/test/test_threads.c | 2 +-
src/test/test_tortls.c | 6 +-
src/test/test_util.c | 8 +-
src/test/test_util_format.c | 2 +-
src/test/test_util_process.c | 2 +-
src/test/test_voting_schedule.c | 4 +-
src/test/test_workqueue.c | 4 +-
src/test/test_zero_length_keys.sh | 6 +-
src/test/testing_common.c | 12 +-
src/test/testing_rsakeys.c | 2 +-
src/tools/include.am | 4 +-
src/tools/tor_runner.c | 4 +-
398 files changed, 3606 insertions(+), 3783 deletions(-)
1
0
[tor/master] Remove ancient unused script that used the old src/or location
by nickm@torproject.org 06 Jul '18
by nickm@torproject.org 06 Jul '18
06 Jul '18
commit ce84200542f48a92e8b56a8d032401ecd153e90c
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 16:05:53 2018 -0400
Remove ancient unused script that used the old src/or location
---
contrib/include.am | 1 -
contrib/win32build/package_nsis-mingw.sh | 95 --------------------------------
2 files changed, 96 deletions(-)
diff --git a/contrib/include.am b/contrib/include.am
index 5d5f21649..a23e82d6d 100644
--- a/contrib/include.am
+++ b/contrib/include.am
@@ -10,7 +10,6 @@ EXTRA_DIST+= \
contrib/operator-tools/linux-tor-prio.sh \
contrib/operator-tools/tor-exit-notice.html \
contrib/or-tools/exitlist \
- contrib/win32build/package_nsis-mingw.sh \
contrib/win32build/tor-mingw.nsi.in \
contrib/win32build/tor.ico \
contrib/win32build/tor.nsi.in
diff --git a/contrib/win32build/package_nsis-mingw.sh b/contrib/win32build/package_nsis-mingw.sh
deleted file mode 100644
index cae862b91..000000000
--- a/contrib/win32build/package_nsis-mingw.sh
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-#
-# ===============================================================================
-# package_nsis-ming.sh is distributed under this license:
-
-# Copyright (c) 2006-2007 Andrew Lewman
-# Copyright (c) 2008 The Tor Project, Inc.
-
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following disclaimer
-# in the documentation and/or other materials provided with the
-# distribution.
-
-# * Neither the names of the copyright owners nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# ===============================================================================
-
-# Script to package a Tor installer on win32. This script assumes that
-# you have already built Tor, that you are running msys/mingw, and that
-# you know what you are doing.
-
-# Start in the tor source directory after you've compiled tor.exe
-# This means start as ./contrib/win32build/package_nsis-mingw.sh
-
-rm -rf win_tmp
-mkdir win_tmp
-mkdir win_tmp/bin
-mkdir win_tmp/contrib
-mkdir win_tmp/doc
-mkdir win_tmp/doc/spec
-mkdir win_tmp/doc/design-paper
-mkdir win_tmp/doc/contrib
-mkdir win_tmp/src
-mkdir win_tmp/src/config
-mkdir win_tmp/tmp
-
-cp src/or/tor.exe win_tmp/bin/
-cp src/tools/tor-resolve.exe win_tmp/bin/
-cp contrib/win32build/tor.ico win_tmp/bin/
-cp src/config/geoip win_tmp/bin/
-strip win_tmp/bin/*.exe
-
-# There is no man2html in mingw.
-# Maybe we should add this into make dist instead.
-# One has to do this manually and cp it do the tor-source/doc dir
-#man2html doc/tor.1.in > win_tmp/tmp/tor-reference.html
-#man2html doc/tor-resolve.1 > win_tmp/tmp/tor-resolve.html
-
-clean_newlines() {
- perl -pe 's/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg;' $1 >$2
-}
-
-clean_localstatedir() {
- perl -pe 's/^\n$/\r\n/mg; s/([^\r])\n$/\1\r\n/mg; s{\@LOCALSTATEDIR\@/(lib|log)/tor/}{C:\\Documents and Settings\\Application Data\\Tor\\}' $1 >$2
-}
-
-for fn in address-spec.txt bridges-spec.txt control-spec.txt dir-spec.txt path-spec.txt rend-spec.txt socks-extensions.txt tor-spec.txt version-spec.txt; do
- clean_newlines doc/spec/$fn win_tmp/doc/spec/$fn
-done
-
-for fn in HACKING tor-gencert.html tor.html torify.html tor-resolve.html; do
- clean_newlines doc/$fn win_tmp/doc/$fn
-done
-
-for fn in README ChangeLog LICENSE; do
- clean_newlines $fn win_tmp/$fn
-done
-
-clean_localstatedir src/config/torrc.sample.in win_tmp/src/config/torrc.sample
-
-cp contrib/win32build/tor-mingw.nsi.in win_tmp/contrib/
-
-cd win_tmp
-makensis.exe contrib/tor-mingw.nsi.in
-
1
0
commit 81cb0afb2b0163d95a435583041dce1064eec65c
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 16:04:32 2018 -0400
Start splitting src/or
This is a very gentle commit that just lays the groundwork in the
build system: it puts the include files to build libtor-app.a into
src/core, and to build the tor executable into src/app. The
executable is now "src/app/tor".
---
.gitignore | 19 ++++++------
Makefile.am | 8 ++---
doc/HACKING/HelpfulTools.md | 6 ++--
scripts/maint/checkOptionDocs.pl.in | 2 +-
src/app/include.am | 38 +++++++++++++++++++++++
src/{or => app}/ntmain.c | 2 +-
src/{or => app}/ntmain.h | 0
src/{or => app}/tor_main.c | 0
src/{or => core}/include.am | 60 +++++++------------------------------
src/include.am | 5 +++-
src/or/main.c | 2 +-
src/test/test_zero_length_keys.sh | 6 ++--
12 files changed, 74 insertions(+), 74 deletions(-)
diff --git a/.gitignore b/.gitignore
index 711974450..80c039a68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -206,16 +206,15 @@ uptime-*.json
/src/lib/libtor-wallclock.a
/src/lib/libtor-wallclock-testing.a
-# /src/or/
-/src/or/Makefile
-/src/or/Makefile.in
-/src/or/tor
-/src/or/tor.exe
-/src/or/tor-cov
-/src/or/tor-cov.exe
-/src/or/libtor-app.a
-/src/or/libtor-app-testing.a
-/src/or/libtor.lib
+# /src/tor
+/src/core/libtor-app.a
+/src/core/libtor-app-testing.a
+
+# /src/app
+/src/app/tor
+/src/app/tor.exe
+/src/app/tor-cov
+/src/app/tor-cov.exe
# /src/rust
/src/rust/.cargo/config
diff --git a/Makefile.am b/Makefile.am
index b2da55cda..e7c46f3cc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,9 +25,9 @@ AM_CFLAGS=@TOR_SYSTEMD_CFLAGS@ @CFLAGS_BUGTRAP@ @TOR_LZMA_CFLAGS@ @TOR_ZSTD_CFLA
SHELL=@SHELL@
if COVERAGE_ENABLED
-TESTING_TOR_BINARY=$(top_builddir)/src/or/tor-cov$(EXEEXT)
+TESTING_TOR_BINARY=$(top_builddir)/src/app/tor-cov$(EXEEXT)
else
-TESTING_TOR_BINARY=$(top_builddir)/src/or/tor$(EXEEXT)
+TESTING_TOR_BINARY=$(top_builddir)/src/app/tor$(EXEEXT)
endif
if USE_RUST
@@ -108,7 +108,7 @@ TOR_CRYPTO_TESTING_LIBS = \
# All static libraries used to link tor.
TOR_INTERNAL_LIBS = \
- src/or/libtor-app.a \
+ src/core/libtor-app.a \
src/lib/libtor-compress.a \
src/lib/libtor-evloop.a \
$(TOR_CRYPTO_LIBS) \
@@ -119,7 +119,7 @@ TOR_INTERNAL_LIBS = \
# Variants of the above for linking the testing variant of tor (for coverage
# and tests)
TOR_INTERNAL_TESTING_LIBS = \
- src/or/libtor-app-testing.a \
+ src/core/libtor-app-testing.a \
src/lib/libtor-compress-testing.a \
src/lib/libtor-evloop-testing.a \
$(TOR_CRYPTO_TESTING_LIBS) \
diff --git a/doc/HACKING/HelpfulTools.md b/doc/HACKING/HelpfulTools.md
index eb068a91f..13d1c4b0d 100644
--- a/doc/HACKING/HelpfulTools.md
+++ b/doc/HACKING/HelpfulTools.md
@@ -28,7 +28,7 @@ Jenkins
Valgrind
--------
- valgrind --leak-check=yes --error-limit=no --show-reachable=yes src/or/tor
+ valgrind --leak-check=yes --error-limit=no --show-reachable=yes src/app/tor
(Note that if you get a zillion openssl warnings, you will also need to
pass `--undef-value-errors=no` to valgrind, or rebuild your openssl
@@ -232,10 +232,10 @@ Beforehand, install google-perftools.
Now you can run Tor with profiling enabled, and use the pprof utility to look at
performance! See the gperftools manual for more info, but basically:
-2. Run `env CPUPROFILE=/tmp/profile src/or/tor -f <path/torrc>`. The profile file
+2. Run `env CPUPROFILE=/tmp/profile src/app/tor -f <path/torrc>`. The profile file
is not written to until Tor finishes execuction.
-3. Run `pprof src/or/tor /tm/profile` to start the REPL.
+3. Run `pprof src/app/tor /tm/profile` to start the REPL.
Generating and analyzing a callgraph
------------------------------------
diff --git a/scripts/maint/checkOptionDocs.pl.in b/scripts/maint/checkOptionDocs.pl.in
index 1f53adf09..6533c762c 100644
--- a/scripts/maint/checkOptionDocs.pl.in
+++ b/scripts/maint/checkOptionDocs.pl.in
@@ -7,7 +7,7 @@ my %torrcSampleOptions = ();
my %manPageOptions = ();
# Load the canonical list as actually accepted by Tor.
-open(F, "@abs_top_builddir@/src/or/tor --list-torrc-options |") or die;
+open(F, "@abs_top_builddir@/src/app/tor --list-torrc-options |") or die;
while (<F>) {
next if m!\[notice\] Tor v0\.!;
if (m!^([A-Za-z0-9_]+)!) {
diff --git a/src/app/include.am b/src/app/include.am
new file mode 100644
index 000000000..bbbffb3e5
--- /dev/null
+++ b/src/app/include.am
@@ -0,0 +1,38 @@
+
+bin_PROGRAMS+= src/app/tor
+
+if COVERAGE_ENABLED
+noinst_PROGRAMS+= src/app/tor-cov
+endif
+
+noinst_HEADERS += \
+ src/app/ntmain.h
+
+src_app_tor_SOURCES = src/app/tor_main.c
+if BUILD_NT_SERVICES
+src_app_tor_SOURCES += src/app/ntmain.c
+endif
+
+# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
+# This seems to matter nowhere but on windows, but I assure you that it
+# matters a lot there, and is quite hard to debug if you forget to do it.
+
+src_app_tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
+src_app_tor_LDADD = $(TOR_INTERNAL_LIBS) \
+ $(rust_ldadd) \
+ @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
+ @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ \
+ @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
+ @TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
+
+if COVERAGE_ENABLED
+src_app_tor_cov_SOURCES = $(src_app_tor_SOURCES)
+src_app_tor_cov_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_app_tor_cov_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+src_app_tor_cov_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
+src_app_tor_cov_LDADD = $(TOR_INTERNAL_TESTING_LIBS) \
+ @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
+ @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ \
+ @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
+ @TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
+endif
diff --git a/src/or/ntmain.c b/src/app/ntmain.c
similarity index 99%
rename from src/or/ntmain.c
rename to src/app/ntmain.c
index f6b57753d..63d82f686 100644
--- a/src/or/ntmain.c
+++ b/src/app/ntmain.c
@@ -22,7 +22,7 @@
#include "or/or.h"
#include "or/config.h"
#include "or/main.h"
-#include "or/ntmain.h"
+#include "app/ntmain.h"
#include "lib/log/win32err.h"
#include "lib/fs/winlib.h"
#include "lib/evloop/compat_libevent.h"
diff --git a/src/or/ntmain.h b/src/app/ntmain.h
similarity index 100%
rename from src/or/ntmain.h
rename to src/app/ntmain.h
diff --git a/src/or/tor_main.c b/src/app/tor_main.c
similarity index 100%
rename from src/or/tor_main.c
rename to src/app/tor_main.c
diff --git a/src/or/include.am b/src/core/include.am
similarity index 82%
rename from src/or/include.am
rename to src/core/include.am
index ad7ee69bf..d6162196f 100644
--- a/src/or/include.am
+++ b/src/core/include.am
@@ -1,22 +1,11 @@
-bin_PROGRAMS+= src/or/tor
+
noinst_LIBRARIES += \
- src/or/libtor-app.a
+ src/core/libtor-app.a
if UNITTESTS_ENABLED
noinst_LIBRARIES += \
- src/or/libtor-app-testing.a
-endif
-if COVERAGE_ENABLED
-noinst_PROGRAMS+= src/or/tor-cov
-endif
-
-if BUILD_NT_SERVICES
-tor_platform_source=src/or/ntmain.c
-else
-tor_platform_source=
+ src/core/libtor-app-testing.a
endif
-EXTRA_DIST+= src/or/ntmain.c src/or/Makefile.nmake
-
LIBTOR_APP_A_SOURCES = \
src/or/addressmap.c \
src/or/address_set.c \
@@ -110,8 +99,7 @@ LIBTOR_APP_A_SOURCES = \
src/or/torcert.c \
src/or/tor_api.c \
src/or/voting_schedule.c \
- src/or/onion_ntor.c \
- $(tor_platform_source)
+ src/or/onion_ntor.c
#
# Modules are conditionnally compiled in tor starting here. We add the C files
@@ -131,53 +119,26 @@ if BUILD_MODULE_DIRAUTH
LIBTOR_APP_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
endif
-src_or_libtor_app_a_SOURCES = $(LIBTOR_APP_A_SOURCES)
+src_core_libtor_app_a_SOURCES = $(LIBTOR_APP_A_SOURCES)
if UNITTESTS_ENABLED
# Add the sources of the modules that are needed for tests to work here.
LIBTOR_APP_TESTING_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
-src_or_libtor_app_testing_a_SOURCES = $(LIBTOR_APP_TESTING_A_SOURCES)
+src_core_libtor_app_testing_a_SOURCES = $(LIBTOR_APP_TESTING_A_SOURCES)
else
-src_or_libtor_app_testing_a_SOURCES =
+src_core_libtor_app_testing_a_SOURCES =
endif
-src_or_tor_SOURCES = src/or/tor_main.c
-
src/or/git_revision.$(OBJEXT) \
- src/or/src_or_libtor_app_testing_a-git_revision.$(OBJEXT): micro-revision.i
+ src/or/src_core_libtor_app_testing_a-git_revision.$(OBJEXT): micro-revision.i
AM_CPPFLAGS += -DSHARE_DATADIR="\"$(datadir)\"" \
-DLOCALSTATEDIR="\"$(localstatedir)\"" \
-DBINDIR="\"$(bindir)\""
-src_or_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
-src_or_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
-
-# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
-# This seems to matter nowhere but on windows, but I assure you that it
-# matters a lot there, and is quite hard to debug if you forget to do it.
-
-
-src_or_tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
-src_or_tor_LDADD = $(TOR_INTERNAL_LIBS) \
- $(rust_ldadd) \
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
- @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ \
- @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
- @TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
-
-if COVERAGE_ENABLED
-src_or_tor_cov_SOURCES = src/or/tor_main.c
-src_or_tor_cov_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
-src_or_tor_cov_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
-src_or_tor_cov_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
-src_or_tor_cov_LDADD = $(TOR_INTERNAL_TESTING_LIBS) \
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
- @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ \
- @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
- @TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
-endif
+src_core_libtor_app_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_core_libtor_app_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
ORHEADERS = \
src/or/addressmap.h \
@@ -267,7 +228,6 @@ ORHEADERS = \
src/or/nodelist.h \
src/or/node_st.h \
src/or/ns_detached_signatures_st.h \
- src/or/ntmain.h \
src/or/onion.h \
src/or/onion_fast.h \
src/or/onion_ntor.h \
diff --git a/src/include.am b/src/include.am
index 950f9cc0f..b5cca7e30 100644
--- a/src/include.am
+++ b/src/include.am
@@ -33,7 +33,10 @@ include src/lib/tls/include.am
include src/lib/trace/include.am
include src/lib/wallclock/include.am
include src/trunnel/include.am
-include src/or/include.am
+
+include src/core/include.am
+include src/app/include.am
+
include src/rust/include.am
include src/test/include.am
include src/tools/include.am
diff --git a/src/or/main.c b/src/or/main.c
index 7e3eb2b59..2a57aa587 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -88,7 +88,7 @@
#include "or/microdesc.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"
-#include "or/ntmain.h"
+#include "app/ntmain.h"
#include "or/onion.h"
#include "or/periodic.h"
#include "or/policies.h"
diff --git a/src/test/test_zero_length_keys.sh b/src/test/test_zero_length_keys.sh
index f85edb68d..84ca513b0 100755
--- a/src/test/test_zero_length_keys.sh
+++ b/src/test/test_zero_length_keys.sh
@@ -3,8 +3,8 @@
exitcode=0
-"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -z || exitcode=1
-"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -d || exitcode=1
-"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -e || exitcode=1
+"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -z || exitcode=1
+"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -d || exitcode=1
+"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -e || exitcode=1
exit ${exitcode}
1
0
commit 63b4ea22af8e8314dd718f02046de5f4b91edf9d
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 16:31:38 2018 -0400
Move literally everything out of src/or
This commit won't build yet -- it just puts everything in a slightly
more logical place.
The reasoning here is that "src/core" will hold the stuff that every (or
nearly every) tor instance will need in order to do onion routing.
Other features (including some necessary ones) will live in
"src/feature". The "src/app" directory will hold the stuff needed
to have Tor be an application you can actually run.
This commit DOES NOT refactor the former contents of src/or into a
logical set of acyclic libraries, or change any code at all. That
will have to come in the future.
We will continue to move things around and split them in the future,
but I hope this lays a reasonable groundwork for doing so.
---
src/{or => app/config}/auth_dirs.inc | 0
src/{or => app/config}/config.c | 0
src/{or => app/config}/config.h | 0
src/{or => app/config}/confparse.c | 0
src/{or => app/config}/confparse.h | 0
src/{or => app/config}/fallback_dirs.inc | 0
src/{or => app/config}/or_options_st.h | 0
src/{or => app/config}/or_state_st.h | 0
src/{or => app/config}/statefile.c | 0
src/{or => app/config}/statefile.h | 0
src/app/include.am | 6 +-
src/app/{ => main}/ntmain.c | 0
src/app/{ => main}/ntmain.h | 0
src/app/{ => main}/tor_main.c | 0
src/{or => core/crypto}/hs_ntor.c | 0
src/{or => core/crypto}/hs_ntor.h | 0
src/{or => core/crypto}/onion.c | 0
src/{or => core/crypto}/onion.h | 0
src/{or => core/crypto}/onion_fast.c | 0
src/{or => core/crypto}/onion_fast.h | 0
src/{or => core/crypto}/onion_ntor.c | 0
src/{or => core/crypto}/onion_ntor.h | 0
src/{or => core/crypto}/onion_tap.c | 0
src/{or => core/crypto}/onion_tap.h | 0
src/{or => core/crypto}/relay_crypto.c | 0
src/{or => core/crypto}/relay_crypto.h | 0
src/{or => core/mainloop}/connection.c | 0
src/{or => core/mainloop}/connection.h | 0
src/{or => core/mainloop}/cpuworker.c | 0
src/{or => core/mainloop}/cpuworker.h | 0
src/{or => core/mainloop}/main.c | 0
src/{or => core/mainloop}/main.h | 0
src/{or => core/mainloop}/periodic.c | 0
src/{or => core/mainloop}/periodic.h | 0
src/{ => core}/or/addr_policy_st.h | 0
src/{ => core}/or/address_set.c | 0
src/{ => core}/or/address_set.h | 0
src/{ => core}/or/cell_queue_st.h | 0
src/{ => core}/or/cell_st.h | 0
src/{ => core}/or/channel.c | 0
src/{ => core}/or/channel.h | 0
src/{ => core}/or/channelpadding.c | 0
src/{ => core}/or/channelpadding.h | 0
src/{ => core}/or/channeltls.c | 0
src/{ => core}/or/channeltls.h | 0
src/{ => core}/or/circuit_st.h | 0
src/{ => core}/or/circuitbuild.c | 0
src/{ => core}/or/circuitbuild.h | 0
src/{ => core}/or/circuitlist.c | 0
src/{ => core}/or/circuitlist.h | 0
src/{ => core}/or/circuitmux.c | 0
src/{ => core}/or/circuitmux.h | 0
src/{ => core}/or/circuitmux_ewma.c | 0
src/{ => core}/or/circuitmux_ewma.h | 0
src/{ => core}/or/circuitstats.c | 0
src/{ => core}/or/circuitstats.h | 0
src/{ => core}/or/circuituse.c | 0
src/{ => core}/or/circuituse.h | 0
src/{ => core}/or/command.c | 0
src/{ => core}/or/command.h | 0
src/{ => core}/or/connection_edge.c | 0
src/{ => core}/or/connection_edge.h | 0
src/{ => core}/or/connection_or.c | 0
src/{ => core}/or/connection_or.h | 0
src/{ => core}/or/connection_st.h | 0
src/{ => core}/or/cpath_build_state_st.h | 0
src/{ => core}/or/crypt_path_reference_st.h | 0
src/{ => core}/or/crypt_path_st.h | 0
src/{ => core}/or/destroy_cell_queue_st.h | 0
src/{ => core}/or/dos.c | 0
src/{ => core}/or/dos.h | 0
src/{ => core}/or/edge_connection_st.h | 0
src/{ => core}/or/entry_connection_st.h | 0
src/{ => core}/or/entry_port_cfg_st.h | 0
src/{ => core}/or/extend_info_st.h | 0
src/{ => core}/or/git_revision.c | 0
src/{ => core}/or/git_revision.h | 0
src/{ => core}/or/listener_connection_st.h | 0
src/{ => core}/or/or.h | 0
src/{ => core}/or/or_circuit_st.h | 0
src/{ => core}/or/or_connection_st.h | 0
src/{ => core}/or/or_handshake_certs_st.h | 0
src/{ => core}/or/or_handshake_state_st.h | 0
src/{ => core}/or/origin_circuit_st.h | 0
src/{ => core}/or/policies.c | 0
src/{ => core}/or/policies.h | 0
src/{ => core}/or/port_cfg_st.h | 0
src/{ => core}/or/reasons.c | 0
src/{ => core}/or/reasons.h | 0
src/{ => core}/or/relay.c | 0
src/{ => core}/or/relay.h | 0
src/{ => core}/or/relay_crypto_st.h | 0
src/{ => core}/or/scheduler.c | 0
src/{ => core}/or/scheduler.h | 0
src/{ => core}/or/scheduler_kist.c | 0
src/{ => core}/or/scheduler_vanilla.c | 0
src/{ => core}/or/server_port_cfg_st.h | 0
src/{ => core}/or/socks_request_st.h | 0
src/{ => core}/or/status.c | 0
src/{ => core}/or/status.h | 0
src/{ => core}/or/tor_version_st.h | 0
src/{ => core}/or/var_cell_st.h | 0
src/{or => core/proto}/proto_cell.c | 0
src/{or => core/proto}/proto_cell.h | 0
src/{or => core/proto}/proto_control0.c | 0
src/{or => core/proto}/proto_control0.h | 0
src/{or => core/proto}/proto_ext_or.c | 0
src/{or => core/proto}/proto_ext_or.h | 0
src/{or => core/proto}/proto_http.c | 0
src/{or => core/proto}/proto_http.h | 0
src/{or => core/proto}/proto_socks.c | 0
src/{or => core/proto}/proto_socks.h | 0
src/{or => core/proto}/protover.c | 0
src/{or => core/proto}/protover.h | 0
src/{or => core/proto}/protover_rust.c | 0
src/{or => feature/api}/tor_api.c | 0
src/{or => feature/api}/tor_api.h | 0
src/{or => feature/api}/tor_api_internal.h | 0
src/{or => feature/client}/addressmap.c | 0
src/{or => feature/client}/addressmap.h | 0
src/{or => feature/client}/bridges.c | 0
src/{or => feature/client}/bridges.h | 0
src/{or => feature/client}/circpathbias.c | 0
src/{or => feature/client}/circpathbias.h | 0
src/{or => feature/client}/dnsserv.c | 0
src/{or => feature/client}/dnsserv.h | 0
src/{or => feature/client}/entrynodes.c | 0
src/{or => feature/client}/entrynodes.h | 0
src/{or => feature/client}/transports.c | 0
src/{or => feature/client}/transports.h | 0
src/{or => feature/control}/control.c | 0
src/{or => feature/control}/control.h | 0
.../control}/control_connection_st.h | 0
src/{or => feature}/dirauth/dircollate.c | 0
src/{or => feature}/dirauth/dircollate.h | 0
src/{or => feature}/dirauth/dirvote.c | 0
src/{or => feature}/dirauth/dirvote.h | 0
src/{or => feature/dirauth}/keypin.c | 0
src/{or => feature/dirauth}/keypin.h | 0
src/{or => feature}/dirauth/mode.h | 0
.../dirauth}/ns_detached_signatures_st.h | 0
src/{or => feature}/dirauth/shared_random.c | 0
src/{or => feature}/dirauth/shared_random.h | 0
src/{or => feature}/dirauth/shared_random_state.c | 0
src/{or => feature}/dirauth/shared_random_state.h | 0
.../dirauth}/vote_microdesc_hash_st.h | 0
src/{or => feature/dircache}/cached_dir_st.h | 0
src/{or => feature/dircache}/conscache.c | 0
src/{or => feature/dircache}/conscache.h | 0
src/{or => feature/dircache}/consdiffmgr.c | 0
src/{or => feature/dircache}/consdiffmgr.h | 0
src/{or => feature/dircache}/directory.c | 0
src/{or => feature/dircache}/directory.h | 0
src/{or => feature/dircache}/dirserv.c | 0
src/{or => feature/dircache}/dirserv.h | 0
src/{or => feature/dirclient}/dir_server_st.h | 0
src/{or => feature/dirclient}/download_status_st.h | 0
src/{or => feature/dircommon}/consdiff.c | 0
src/{or => feature/dircommon}/consdiff.h | 0
src/{or => feature/dircommon}/dir_connection_st.h | 0
src/{or => feature/dircommon}/fp_pair.c | 0
src/{or => feature/dircommon}/fp_pair.h | 0
src/{or => feature/dircommon}/vote_timing_st.h | 0
src/{or => feature/dircommon}/voting_schedule.c | 0
src/{or => feature/dircommon}/voting_schedule.h | 0
src/{or => feature/hibernate}/hibernate.c | 0
src/{or => feature/hibernate}/hibernate.h | 0
src/{or => feature/hs}/hs_cache.c | 0
src/{or => feature/hs}/hs_cache.h | 0
src/{or => feature/hs}/hs_cell.c | 0
src/{or => feature/hs}/hs_cell.h | 0
src/{or => feature/hs}/hs_circuit.c | 0
src/{or => feature/hs}/hs_circuit.h | 0
src/{or => feature/hs}/hs_circuitmap.c | 0
src/{or => feature/hs}/hs_circuitmap.h | 0
src/{or => feature/hs}/hs_client.c | 0
src/{or => feature/hs}/hs_client.h | 0
src/{or => feature/hs}/hs_common.c | 0
src/{or => feature/hs}/hs_common.h | 0
src/{or => feature/hs}/hs_config.c | 0
src/{or => feature/hs}/hs_config.h | 0
src/{or => feature/hs}/hs_control.c | 0
src/{or => feature/hs}/hs_control.h | 0
src/{or => feature/hs}/hs_descriptor.c | 0
src/{or => feature/hs}/hs_descriptor.h | 0
src/{or => feature/hs}/hs_ident.c | 0
src/{or => feature/hs}/hs_ident.h | 0
src/{or => feature/hs}/hs_intropoint.c | 0
src/{or => feature/hs}/hs_intropoint.h | 0
src/{or => feature/hs}/hs_service.c | 0
src/{or => feature/hs}/hs_service.h | 0
src/{or => feature/hs}/hs_stats.c | 0
src/{or => feature/hs}/hs_stats.h | 0
src/{or => feature/hs}/hsdir_index_st.h | 0
src/{or => feature/hs_common}/replaycache.c | 0
src/{or => feature/hs_common}/replaycache.h | 0
.../hs_common}/shared_random_client.c | 0
.../hs_common}/shared_random_client.h | 0
src/{or => feature/nodelist}/authority_cert_st.h | 0
src/{or => feature/nodelist}/desc_store_st.h | 0
.../nodelist}/document_signature_st.h | 0
src/{or => feature/nodelist}/extrainfo_st.h | 0
src/{or => feature/nodelist}/microdesc.c | 0
src/{or => feature/nodelist}/microdesc.h | 0
src/{or => feature/nodelist}/microdesc_st.h | 0
src/{or => feature/nodelist}/networkstatus.c | 0
src/{or => feature/nodelist}/networkstatus.h | 0
.../nodelist}/networkstatus_sr_info_st.h | 0
src/{or => feature/nodelist}/networkstatus_st.h | 0
.../nodelist}/networkstatus_voter_info_st.h | 0
src/{or => feature/nodelist}/node_st.h | 0
src/{or => feature/nodelist}/nodelist.c | 0
src/{or => feature/nodelist}/nodelist.h | 0
src/{or => feature/nodelist}/parsecommon.c | 0
src/{or => feature/nodelist}/parsecommon.h | 0
src/{or => feature/nodelist}/routerinfo_st.h | 0
src/{or => feature/nodelist}/routerlist.c | 0
src/{or => feature/nodelist}/routerlist.h | 0
src/{or => feature/nodelist}/routerlist_st.h | 0
src/{or => feature/nodelist}/routerparse.c | 0
src/{or => feature/nodelist}/routerparse.h | 0
src/{or => feature/nodelist}/routerset.c | 0
src/{or => feature/nodelist}/routerset.h | 0
src/{or => feature/nodelist}/routerstatus_st.h | 0
.../nodelist}/signed_descriptor_st.h | 0
src/{or => feature/nodelist}/torcert.c | 0
src/{or => feature/nodelist}/torcert.h | 0
.../nodelist}/vote_routerstatus_st.h | 0
src/{or => feature/relay}/dns.c | 0
src/{or => feature/relay}/dns.h | 0
src/{or => feature/relay}/dns_structs.h | 0
src/{or => feature/relay}/ext_orport.c | 0
src/{or => feature/relay}/ext_orport.h | 0
src/{or => feature/relay}/router.c | 0
src/{or => feature/relay}/router.h | 0
src/{or => feature/relay}/routerkeys.c | 0
src/{or => feature/relay}/routerkeys.h | 0
.../rend}/rend_authorized_client_st.h | 0
.../rend}/rend_encoded_v2_service_descriptor_st.h | 0
src/{or => feature/rend}/rend_intro_point_st.h | 0
.../rend}/rend_service_descriptor_st.h | 0
src/{or => feature/rend}/rendcache.c | 0
src/{or => feature/rend}/rendcache.h | 0
src/{or => feature/rend}/rendclient.c | 0
src/{or => feature/rend}/rendclient.h | 0
src/{or => feature/rend}/rendcommon.c | 0
src/{or => feature/rend}/rendcommon.h | 0
src/{or => feature/rend}/rendmid.c | 0
src/{or => feature/rend}/rendmid.h | 0
src/{or => feature/rend}/rendservice.c | 0
src/{or => feature/rend}/rendservice.h | 0
src/{or => feature/stats}/geoip.c | 0
src/{or => feature/stats}/geoip.h | 0
src/{or => feature/stats}/rephist.c | 0
src/{or => feature/stats}/rephist.h | 0
src/or/Makefile.nmake | 79 ----------------------
256 files changed, 3 insertions(+), 82 deletions(-)
diff --git a/src/or/auth_dirs.inc b/src/app/config/auth_dirs.inc
similarity index 100%
rename from src/or/auth_dirs.inc
rename to src/app/config/auth_dirs.inc
diff --git a/src/or/config.c b/src/app/config/config.c
similarity index 100%
rename from src/or/config.c
rename to src/app/config/config.c
diff --git a/src/or/config.h b/src/app/config/config.h
similarity index 100%
rename from src/or/config.h
rename to src/app/config/config.h
diff --git a/src/or/confparse.c b/src/app/config/confparse.c
similarity index 100%
rename from src/or/confparse.c
rename to src/app/config/confparse.c
diff --git a/src/or/confparse.h b/src/app/config/confparse.h
similarity index 100%
rename from src/or/confparse.h
rename to src/app/config/confparse.h
diff --git a/src/or/fallback_dirs.inc b/src/app/config/fallback_dirs.inc
similarity index 100%
rename from src/or/fallback_dirs.inc
rename to src/app/config/fallback_dirs.inc
diff --git a/src/or/or_options_st.h b/src/app/config/or_options_st.h
similarity index 100%
rename from src/or/or_options_st.h
rename to src/app/config/or_options_st.h
diff --git a/src/or/or_state_st.h b/src/app/config/or_state_st.h
similarity index 100%
rename from src/or/or_state_st.h
rename to src/app/config/or_state_st.h
diff --git a/src/or/statefile.c b/src/app/config/statefile.c
similarity index 100%
rename from src/or/statefile.c
rename to src/app/config/statefile.c
diff --git a/src/or/statefile.h b/src/app/config/statefile.h
similarity index 100%
rename from src/or/statefile.h
rename to src/app/config/statefile.h
diff --git a/src/app/include.am b/src/app/include.am
index bbbffb3e5..8e86bbeeb 100644
--- a/src/app/include.am
+++ b/src/app/include.am
@@ -6,11 +6,11 @@ noinst_PROGRAMS+= src/app/tor-cov
endif
noinst_HEADERS += \
- src/app/ntmain.h
+ src/app/main/ntmain.h
-src_app_tor_SOURCES = src/app/tor_main.c
+src_app_tor_SOURCES = src/app/main/tor_main.c
if BUILD_NT_SERVICES
-src_app_tor_SOURCES += src/app/ntmain.c
+src_app_tor_SOURCES += src/app/main/ntmain.c
endif
# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
diff --git a/src/app/ntmain.c b/src/app/main/ntmain.c
similarity index 100%
rename from src/app/ntmain.c
rename to src/app/main/ntmain.c
diff --git a/src/app/ntmain.h b/src/app/main/ntmain.h
similarity index 100%
rename from src/app/ntmain.h
rename to src/app/main/ntmain.h
diff --git a/src/app/tor_main.c b/src/app/main/tor_main.c
similarity index 100%
rename from src/app/tor_main.c
rename to src/app/main/tor_main.c
diff --git a/src/or/hs_ntor.c b/src/core/crypto/hs_ntor.c
similarity index 100%
rename from src/or/hs_ntor.c
rename to src/core/crypto/hs_ntor.c
diff --git a/src/or/hs_ntor.h b/src/core/crypto/hs_ntor.h
similarity index 100%
rename from src/or/hs_ntor.h
rename to src/core/crypto/hs_ntor.h
diff --git a/src/or/onion.c b/src/core/crypto/onion.c
similarity index 100%
rename from src/or/onion.c
rename to src/core/crypto/onion.c
diff --git a/src/or/onion.h b/src/core/crypto/onion.h
similarity index 100%
rename from src/or/onion.h
rename to src/core/crypto/onion.h
diff --git a/src/or/onion_fast.c b/src/core/crypto/onion_fast.c
similarity index 100%
rename from src/or/onion_fast.c
rename to src/core/crypto/onion_fast.c
diff --git a/src/or/onion_fast.h b/src/core/crypto/onion_fast.h
similarity index 100%
rename from src/or/onion_fast.h
rename to src/core/crypto/onion_fast.h
diff --git a/src/or/onion_ntor.c b/src/core/crypto/onion_ntor.c
similarity index 100%
rename from src/or/onion_ntor.c
rename to src/core/crypto/onion_ntor.c
diff --git a/src/or/onion_ntor.h b/src/core/crypto/onion_ntor.h
similarity index 100%
rename from src/or/onion_ntor.h
rename to src/core/crypto/onion_ntor.h
diff --git a/src/or/onion_tap.c b/src/core/crypto/onion_tap.c
similarity index 100%
rename from src/or/onion_tap.c
rename to src/core/crypto/onion_tap.c
diff --git a/src/or/onion_tap.h b/src/core/crypto/onion_tap.h
similarity index 100%
rename from src/or/onion_tap.h
rename to src/core/crypto/onion_tap.h
diff --git a/src/or/relay_crypto.c b/src/core/crypto/relay_crypto.c
similarity index 100%
rename from src/or/relay_crypto.c
rename to src/core/crypto/relay_crypto.c
diff --git a/src/or/relay_crypto.h b/src/core/crypto/relay_crypto.h
similarity index 100%
rename from src/or/relay_crypto.h
rename to src/core/crypto/relay_crypto.h
diff --git a/src/or/connection.c b/src/core/mainloop/connection.c
similarity index 100%
rename from src/or/connection.c
rename to src/core/mainloop/connection.c
diff --git a/src/or/connection.h b/src/core/mainloop/connection.h
similarity index 100%
rename from src/or/connection.h
rename to src/core/mainloop/connection.h
diff --git a/src/or/cpuworker.c b/src/core/mainloop/cpuworker.c
similarity index 100%
rename from src/or/cpuworker.c
rename to src/core/mainloop/cpuworker.c
diff --git a/src/or/cpuworker.h b/src/core/mainloop/cpuworker.h
similarity index 100%
rename from src/or/cpuworker.h
rename to src/core/mainloop/cpuworker.h
diff --git a/src/or/main.c b/src/core/mainloop/main.c
similarity index 100%
rename from src/or/main.c
rename to src/core/mainloop/main.c
diff --git a/src/or/main.h b/src/core/mainloop/main.h
similarity index 100%
rename from src/or/main.h
rename to src/core/mainloop/main.h
diff --git a/src/or/periodic.c b/src/core/mainloop/periodic.c
similarity index 100%
rename from src/or/periodic.c
rename to src/core/mainloop/periodic.c
diff --git a/src/or/periodic.h b/src/core/mainloop/periodic.h
similarity index 100%
rename from src/or/periodic.h
rename to src/core/mainloop/periodic.h
diff --git a/src/or/addr_policy_st.h b/src/core/or/addr_policy_st.h
similarity index 100%
rename from src/or/addr_policy_st.h
rename to src/core/or/addr_policy_st.h
diff --git a/src/or/address_set.c b/src/core/or/address_set.c
similarity index 100%
rename from src/or/address_set.c
rename to src/core/or/address_set.c
diff --git a/src/or/address_set.h b/src/core/or/address_set.h
similarity index 100%
rename from src/or/address_set.h
rename to src/core/or/address_set.h
diff --git a/src/or/cell_queue_st.h b/src/core/or/cell_queue_st.h
similarity index 100%
rename from src/or/cell_queue_st.h
rename to src/core/or/cell_queue_st.h
diff --git a/src/or/cell_st.h b/src/core/or/cell_st.h
similarity index 100%
rename from src/or/cell_st.h
rename to src/core/or/cell_st.h
diff --git a/src/or/channel.c b/src/core/or/channel.c
similarity index 100%
rename from src/or/channel.c
rename to src/core/or/channel.c
diff --git a/src/or/channel.h b/src/core/or/channel.h
similarity index 100%
rename from src/or/channel.h
rename to src/core/or/channel.h
diff --git a/src/or/channelpadding.c b/src/core/or/channelpadding.c
similarity index 100%
rename from src/or/channelpadding.c
rename to src/core/or/channelpadding.c
diff --git a/src/or/channelpadding.h b/src/core/or/channelpadding.h
similarity index 100%
rename from src/or/channelpadding.h
rename to src/core/or/channelpadding.h
diff --git a/src/or/channeltls.c b/src/core/or/channeltls.c
similarity index 100%
rename from src/or/channeltls.c
rename to src/core/or/channeltls.c
diff --git a/src/or/channeltls.h b/src/core/or/channeltls.h
similarity index 100%
rename from src/or/channeltls.h
rename to src/core/or/channeltls.h
diff --git a/src/or/circuit_st.h b/src/core/or/circuit_st.h
similarity index 100%
rename from src/or/circuit_st.h
rename to src/core/or/circuit_st.h
diff --git a/src/or/circuitbuild.c b/src/core/or/circuitbuild.c
similarity index 100%
rename from src/or/circuitbuild.c
rename to src/core/or/circuitbuild.c
diff --git a/src/or/circuitbuild.h b/src/core/or/circuitbuild.h
similarity index 100%
rename from src/or/circuitbuild.h
rename to src/core/or/circuitbuild.h
diff --git a/src/or/circuitlist.c b/src/core/or/circuitlist.c
similarity index 100%
rename from src/or/circuitlist.c
rename to src/core/or/circuitlist.c
diff --git a/src/or/circuitlist.h b/src/core/or/circuitlist.h
similarity index 100%
rename from src/or/circuitlist.h
rename to src/core/or/circuitlist.h
diff --git a/src/or/circuitmux.c b/src/core/or/circuitmux.c
similarity index 100%
rename from src/or/circuitmux.c
rename to src/core/or/circuitmux.c
diff --git a/src/or/circuitmux.h b/src/core/or/circuitmux.h
similarity index 100%
rename from src/or/circuitmux.h
rename to src/core/or/circuitmux.h
diff --git a/src/or/circuitmux_ewma.c b/src/core/or/circuitmux_ewma.c
similarity index 100%
rename from src/or/circuitmux_ewma.c
rename to src/core/or/circuitmux_ewma.c
diff --git a/src/or/circuitmux_ewma.h b/src/core/or/circuitmux_ewma.h
similarity index 100%
rename from src/or/circuitmux_ewma.h
rename to src/core/or/circuitmux_ewma.h
diff --git a/src/or/circuitstats.c b/src/core/or/circuitstats.c
similarity index 100%
rename from src/or/circuitstats.c
rename to src/core/or/circuitstats.c
diff --git a/src/or/circuitstats.h b/src/core/or/circuitstats.h
similarity index 100%
rename from src/or/circuitstats.h
rename to src/core/or/circuitstats.h
diff --git a/src/or/circuituse.c b/src/core/or/circuituse.c
similarity index 100%
rename from src/or/circuituse.c
rename to src/core/or/circuituse.c
diff --git a/src/or/circuituse.h b/src/core/or/circuituse.h
similarity index 100%
rename from src/or/circuituse.h
rename to src/core/or/circuituse.h
diff --git a/src/or/command.c b/src/core/or/command.c
similarity index 100%
rename from src/or/command.c
rename to src/core/or/command.c
diff --git a/src/or/command.h b/src/core/or/command.h
similarity index 100%
rename from src/or/command.h
rename to src/core/or/command.h
diff --git a/src/or/connection_edge.c b/src/core/or/connection_edge.c
similarity index 100%
rename from src/or/connection_edge.c
rename to src/core/or/connection_edge.c
diff --git a/src/or/connection_edge.h b/src/core/or/connection_edge.h
similarity index 100%
rename from src/or/connection_edge.h
rename to src/core/or/connection_edge.h
diff --git a/src/or/connection_or.c b/src/core/or/connection_or.c
similarity index 100%
rename from src/or/connection_or.c
rename to src/core/or/connection_or.c
diff --git a/src/or/connection_or.h b/src/core/or/connection_or.h
similarity index 100%
rename from src/or/connection_or.h
rename to src/core/or/connection_or.h
diff --git a/src/or/connection_st.h b/src/core/or/connection_st.h
similarity index 100%
rename from src/or/connection_st.h
rename to src/core/or/connection_st.h
diff --git a/src/or/cpath_build_state_st.h b/src/core/or/cpath_build_state_st.h
similarity index 100%
rename from src/or/cpath_build_state_st.h
rename to src/core/or/cpath_build_state_st.h
diff --git a/src/or/crypt_path_reference_st.h b/src/core/or/crypt_path_reference_st.h
similarity index 100%
rename from src/or/crypt_path_reference_st.h
rename to src/core/or/crypt_path_reference_st.h
diff --git a/src/or/crypt_path_st.h b/src/core/or/crypt_path_st.h
similarity index 100%
rename from src/or/crypt_path_st.h
rename to src/core/or/crypt_path_st.h
diff --git a/src/or/destroy_cell_queue_st.h b/src/core/or/destroy_cell_queue_st.h
similarity index 100%
rename from src/or/destroy_cell_queue_st.h
rename to src/core/or/destroy_cell_queue_st.h
diff --git a/src/or/dos.c b/src/core/or/dos.c
similarity index 100%
rename from src/or/dos.c
rename to src/core/or/dos.c
diff --git a/src/or/dos.h b/src/core/or/dos.h
similarity index 100%
rename from src/or/dos.h
rename to src/core/or/dos.h
diff --git a/src/or/edge_connection_st.h b/src/core/or/edge_connection_st.h
similarity index 100%
rename from src/or/edge_connection_st.h
rename to src/core/or/edge_connection_st.h
diff --git a/src/or/entry_connection_st.h b/src/core/or/entry_connection_st.h
similarity index 100%
rename from src/or/entry_connection_st.h
rename to src/core/or/entry_connection_st.h
diff --git a/src/or/entry_port_cfg_st.h b/src/core/or/entry_port_cfg_st.h
similarity index 100%
rename from src/or/entry_port_cfg_st.h
rename to src/core/or/entry_port_cfg_st.h
diff --git a/src/or/extend_info_st.h b/src/core/or/extend_info_st.h
similarity index 100%
rename from src/or/extend_info_st.h
rename to src/core/or/extend_info_st.h
diff --git a/src/or/git_revision.c b/src/core/or/git_revision.c
similarity index 100%
rename from src/or/git_revision.c
rename to src/core/or/git_revision.c
diff --git a/src/or/git_revision.h b/src/core/or/git_revision.h
similarity index 100%
rename from src/or/git_revision.h
rename to src/core/or/git_revision.h
diff --git a/src/or/listener_connection_st.h b/src/core/or/listener_connection_st.h
similarity index 100%
rename from src/or/listener_connection_st.h
rename to src/core/or/listener_connection_st.h
diff --git a/src/or/or.h b/src/core/or/or.h
similarity index 100%
rename from src/or/or.h
rename to src/core/or/or.h
diff --git a/src/or/or_circuit_st.h b/src/core/or/or_circuit_st.h
similarity index 100%
rename from src/or/or_circuit_st.h
rename to src/core/or/or_circuit_st.h
diff --git a/src/or/or_connection_st.h b/src/core/or/or_connection_st.h
similarity index 100%
rename from src/or/or_connection_st.h
rename to src/core/or/or_connection_st.h
diff --git a/src/or/or_handshake_certs_st.h b/src/core/or/or_handshake_certs_st.h
similarity index 100%
rename from src/or/or_handshake_certs_st.h
rename to src/core/or/or_handshake_certs_st.h
diff --git a/src/or/or_handshake_state_st.h b/src/core/or/or_handshake_state_st.h
similarity index 100%
rename from src/or/or_handshake_state_st.h
rename to src/core/or/or_handshake_state_st.h
diff --git a/src/or/origin_circuit_st.h b/src/core/or/origin_circuit_st.h
similarity index 100%
rename from src/or/origin_circuit_st.h
rename to src/core/or/origin_circuit_st.h
diff --git a/src/or/policies.c b/src/core/or/policies.c
similarity index 100%
rename from src/or/policies.c
rename to src/core/or/policies.c
diff --git a/src/or/policies.h b/src/core/or/policies.h
similarity index 100%
rename from src/or/policies.h
rename to src/core/or/policies.h
diff --git a/src/or/port_cfg_st.h b/src/core/or/port_cfg_st.h
similarity index 100%
rename from src/or/port_cfg_st.h
rename to src/core/or/port_cfg_st.h
diff --git a/src/or/reasons.c b/src/core/or/reasons.c
similarity index 100%
rename from src/or/reasons.c
rename to src/core/or/reasons.c
diff --git a/src/or/reasons.h b/src/core/or/reasons.h
similarity index 100%
rename from src/or/reasons.h
rename to src/core/or/reasons.h
diff --git a/src/or/relay.c b/src/core/or/relay.c
similarity index 100%
rename from src/or/relay.c
rename to src/core/or/relay.c
diff --git a/src/or/relay.h b/src/core/or/relay.h
similarity index 100%
rename from src/or/relay.h
rename to src/core/or/relay.h
diff --git a/src/or/relay_crypto_st.h b/src/core/or/relay_crypto_st.h
similarity index 100%
rename from src/or/relay_crypto_st.h
rename to src/core/or/relay_crypto_st.h
diff --git a/src/or/scheduler.c b/src/core/or/scheduler.c
similarity index 100%
rename from src/or/scheduler.c
rename to src/core/or/scheduler.c
diff --git a/src/or/scheduler.h b/src/core/or/scheduler.h
similarity index 100%
rename from src/or/scheduler.h
rename to src/core/or/scheduler.h
diff --git a/src/or/scheduler_kist.c b/src/core/or/scheduler_kist.c
similarity index 100%
rename from src/or/scheduler_kist.c
rename to src/core/or/scheduler_kist.c
diff --git a/src/or/scheduler_vanilla.c b/src/core/or/scheduler_vanilla.c
similarity index 100%
rename from src/or/scheduler_vanilla.c
rename to src/core/or/scheduler_vanilla.c
diff --git a/src/or/server_port_cfg_st.h b/src/core/or/server_port_cfg_st.h
similarity index 100%
rename from src/or/server_port_cfg_st.h
rename to src/core/or/server_port_cfg_st.h
diff --git a/src/or/socks_request_st.h b/src/core/or/socks_request_st.h
similarity index 100%
rename from src/or/socks_request_st.h
rename to src/core/or/socks_request_st.h
diff --git a/src/or/status.c b/src/core/or/status.c
similarity index 100%
rename from src/or/status.c
rename to src/core/or/status.c
diff --git a/src/or/status.h b/src/core/or/status.h
similarity index 100%
rename from src/or/status.h
rename to src/core/or/status.h
diff --git a/src/or/tor_version_st.h b/src/core/or/tor_version_st.h
similarity index 100%
rename from src/or/tor_version_st.h
rename to src/core/or/tor_version_st.h
diff --git a/src/or/var_cell_st.h b/src/core/or/var_cell_st.h
similarity index 100%
rename from src/or/var_cell_st.h
rename to src/core/or/var_cell_st.h
diff --git a/src/or/proto_cell.c b/src/core/proto/proto_cell.c
similarity index 100%
rename from src/or/proto_cell.c
rename to src/core/proto/proto_cell.c
diff --git a/src/or/proto_cell.h b/src/core/proto/proto_cell.h
similarity index 100%
rename from src/or/proto_cell.h
rename to src/core/proto/proto_cell.h
diff --git a/src/or/proto_control0.c b/src/core/proto/proto_control0.c
similarity index 100%
rename from src/or/proto_control0.c
rename to src/core/proto/proto_control0.c
diff --git a/src/or/proto_control0.h b/src/core/proto/proto_control0.h
similarity index 100%
rename from src/or/proto_control0.h
rename to src/core/proto/proto_control0.h
diff --git a/src/or/proto_ext_or.c b/src/core/proto/proto_ext_or.c
similarity index 100%
rename from src/or/proto_ext_or.c
rename to src/core/proto/proto_ext_or.c
diff --git a/src/or/proto_ext_or.h b/src/core/proto/proto_ext_or.h
similarity index 100%
rename from src/or/proto_ext_or.h
rename to src/core/proto/proto_ext_or.h
diff --git a/src/or/proto_http.c b/src/core/proto/proto_http.c
similarity index 100%
rename from src/or/proto_http.c
rename to src/core/proto/proto_http.c
diff --git a/src/or/proto_http.h b/src/core/proto/proto_http.h
similarity index 100%
rename from src/or/proto_http.h
rename to src/core/proto/proto_http.h
diff --git a/src/or/proto_socks.c b/src/core/proto/proto_socks.c
similarity index 100%
rename from src/or/proto_socks.c
rename to src/core/proto/proto_socks.c
diff --git a/src/or/proto_socks.h b/src/core/proto/proto_socks.h
similarity index 100%
rename from src/or/proto_socks.h
rename to src/core/proto/proto_socks.h
diff --git a/src/or/protover.c b/src/core/proto/protover.c
similarity index 100%
rename from src/or/protover.c
rename to src/core/proto/protover.c
diff --git a/src/or/protover.h b/src/core/proto/protover.h
similarity index 100%
rename from src/or/protover.h
rename to src/core/proto/protover.h
diff --git a/src/or/protover_rust.c b/src/core/proto/protover_rust.c
similarity index 100%
rename from src/or/protover_rust.c
rename to src/core/proto/protover_rust.c
diff --git a/src/or/tor_api.c b/src/feature/api/tor_api.c
similarity index 100%
rename from src/or/tor_api.c
rename to src/feature/api/tor_api.c
diff --git a/src/or/tor_api.h b/src/feature/api/tor_api.h
similarity index 100%
rename from src/or/tor_api.h
rename to src/feature/api/tor_api.h
diff --git a/src/or/tor_api_internal.h b/src/feature/api/tor_api_internal.h
similarity index 100%
rename from src/or/tor_api_internal.h
rename to src/feature/api/tor_api_internal.h
diff --git a/src/or/addressmap.c b/src/feature/client/addressmap.c
similarity index 100%
rename from src/or/addressmap.c
rename to src/feature/client/addressmap.c
diff --git a/src/or/addressmap.h b/src/feature/client/addressmap.h
similarity index 100%
rename from src/or/addressmap.h
rename to src/feature/client/addressmap.h
diff --git a/src/or/bridges.c b/src/feature/client/bridges.c
similarity index 100%
rename from src/or/bridges.c
rename to src/feature/client/bridges.c
diff --git a/src/or/bridges.h b/src/feature/client/bridges.h
similarity index 100%
rename from src/or/bridges.h
rename to src/feature/client/bridges.h
diff --git a/src/or/circpathbias.c b/src/feature/client/circpathbias.c
similarity index 100%
rename from src/or/circpathbias.c
rename to src/feature/client/circpathbias.c
diff --git a/src/or/circpathbias.h b/src/feature/client/circpathbias.h
similarity index 100%
rename from src/or/circpathbias.h
rename to src/feature/client/circpathbias.h
diff --git a/src/or/dnsserv.c b/src/feature/client/dnsserv.c
similarity index 100%
rename from src/or/dnsserv.c
rename to src/feature/client/dnsserv.c
diff --git a/src/or/dnsserv.h b/src/feature/client/dnsserv.h
similarity index 100%
rename from src/or/dnsserv.h
rename to src/feature/client/dnsserv.h
diff --git a/src/or/entrynodes.c b/src/feature/client/entrynodes.c
similarity index 100%
rename from src/or/entrynodes.c
rename to src/feature/client/entrynodes.c
diff --git a/src/or/entrynodes.h b/src/feature/client/entrynodes.h
similarity index 100%
rename from src/or/entrynodes.h
rename to src/feature/client/entrynodes.h
diff --git a/src/or/transports.c b/src/feature/client/transports.c
similarity index 100%
rename from src/or/transports.c
rename to src/feature/client/transports.c
diff --git a/src/or/transports.h b/src/feature/client/transports.h
similarity index 100%
rename from src/or/transports.h
rename to src/feature/client/transports.h
diff --git a/src/or/control.c b/src/feature/control/control.c
similarity index 100%
rename from src/or/control.c
rename to src/feature/control/control.c
diff --git a/src/or/control.h b/src/feature/control/control.h
similarity index 100%
rename from src/or/control.h
rename to src/feature/control/control.h
diff --git a/src/or/control_connection_st.h b/src/feature/control/control_connection_st.h
similarity index 100%
rename from src/or/control_connection_st.h
rename to src/feature/control/control_connection_st.h
diff --git a/src/or/dirauth/dircollate.c b/src/feature/dirauth/dircollate.c
similarity index 100%
rename from src/or/dirauth/dircollate.c
rename to src/feature/dirauth/dircollate.c
diff --git a/src/or/dirauth/dircollate.h b/src/feature/dirauth/dircollate.h
similarity index 100%
rename from src/or/dirauth/dircollate.h
rename to src/feature/dirauth/dircollate.h
diff --git a/src/or/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
similarity index 100%
rename from src/or/dirauth/dirvote.c
rename to src/feature/dirauth/dirvote.c
diff --git a/src/or/dirauth/dirvote.h b/src/feature/dirauth/dirvote.h
similarity index 100%
rename from src/or/dirauth/dirvote.h
rename to src/feature/dirauth/dirvote.h
diff --git a/src/or/keypin.c b/src/feature/dirauth/keypin.c
similarity index 100%
rename from src/or/keypin.c
rename to src/feature/dirauth/keypin.c
diff --git a/src/or/keypin.h b/src/feature/dirauth/keypin.h
similarity index 100%
rename from src/or/keypin.h
rename to src/feature/dirauth/keypin.h
diff --git a/src/or/dirauth/mode.h b/src/feature/dirauth/mode.h
similarity index 100%
rename from src/or/dirauth/mode.h
rename to src/feature/dirauth/mode.h
diff --git a/src/or/ns_detached_signatures_st.h b/src/feature/dirauth/ns_detached_signatures_st.h
similarity index 100%
rename from src/or/ns_detached_signatures_st.h
rename to src/feature/dirauth/ns_detached_signatures_st.h
diff --git a/src/or/dirauth/shared_random.c b/src/feature/dirauth/shared_random.c
similarity index 100%
rename from src/or/dirauth/shared_random.c
rename to src/feature/dirauth/shared_random.c
diff --git a/src/or/dirauth/shared_random.h b/src/feature/dirauth/shared_random.h
similarity index 100%
rename from src/or/dirauth/shared_random.h
rename to src/feature/dirauth/shared_random.h
diff --git a/src/or/dirauth/shared_random_state.c b/src/feature/dirauth/shared_random_state.c
similarity index 100%
rename from src/or/dirauth/shared_random_state.c
rename to src/feature/dirauth/shared_random_state.c
diff --git a/src/or/dirauth/shared_random_state.h b/src/feature/dirauth/shared_random_state.h
similarity index 100%
rename from src/or/dirauth/shared_random_state.h
rename to src/feature/dirauth/shared_random_state.h
diff --git a/src/or/vote_microdesc_hash_st.h b/src/feature/dirauth/vote_microdesc_hash_st.h
similarity index 100%
rename from src/or/vote_microdesc_hash_st.h
rename to src/feature/dirauth/vote_microdesc_hash_st.h
diff --git a/src/or/cached_dir_st.h b/src/feature/dircache/cached_dir_st.h
similarity index 100%
rename from src/or/cached_dir_st.h
rename to src/feature/dircache/cached_dir_st.h
diff --git a/src/or/conscache.c b/src/feature/dircache/conscache.c
similarity index 100%
rename from src/or/conscache.c
rename to src/feature/dircache/conscache.c
diff --git a/src/or/conscache.h b/src/feature/dircache/conscache.h
similarity index 100%
rename from src/or/conscache.h
rename to src/feature/dircache/conscache.h
diff --git a/src/or/consdiffmgr.c b/src/feature/dircache/consdiffmgr.c
similarity index 100%
rename from src/or/consdiffmgr.c
rename to src/feature/dircache/consdiffmgr.c
diff --git a/src/or/consdiffmgr.h b/src/feature/dircache/consdiffmgr.h
similarity index 100%
rename from src/or/consdiffmgr.h
rename to src/feature/dircache/consdiffmgr.h
diff --git a/src/or/directory.c b/src/feature/dircache/directory.c
similarity index 100%
rename from src/or/directory.c
rename to src/feature/dircache/directory.c
diff --git a/src/or/directory.h b/src/feature/dircache/directory.h
similarity index 100%
rename from src/or/directory.h
rename to src/feature/dircache/directory.h
diff --git a/src/or/dirserv.c b/src/feature/dircache/dirserv.c
similarity index 100%
rename from src/or/dirserv.c
rename to src/feature/dircache/dirserv.c
diff --git a/src/or/dirserv.h b/src/feature/dircache/dirserv.h
similarity index 100%
rename from src/or/dirserv.h
rename to src/feature/dircache/dirserv.h
diff --git a/src/or/dir_server_st.h b/src/feature/dirclient/dir_server_st.h
similarity index 100%
rename from src/or/dir_server_st.h
rename to src/feature/dirclient/dir_server_st.h
diff --git a/src/or/download_status_st.h b/src/feature/dirclient/download_status_st.h
similarity index 100%
rename from src/or/download_status_st.h
rename to src/feature/dirclient/download_status_st.h
diff --git a/src/or/consdiff.c b/src/feature/dircommon/consdiff.c
similarity index 100%
rename from src/or/consdiff.c
rename to src/feature/dircommon/consdiff.c
diff --git a/src/or/consdiff.h b/src/feature/dircommon/consdiff.h
similarity index 100%
rename from src/or/consdiff.h
rename to src/feature/dircommon/consdiff.h
diff --git a/src/or/dir_connection_st.h b/src/feature/dircommon/dir_connection_st.h
similarity index 100%
rename from src/or/dir_connection_st.h
rename to src/feature/dircommon/dir_connection_st.h
diff --git a/src/or/fp_pair.c b/src/feature/dircommon/fp_pair.c
similarity index 100%
rename from src/or/fp_pair.c
rename to src/feature/dircommon/fp_pair.c
diff --git a/src/or/fp_pair.h b/src/feature/dircommon/fp_pair.h
similarity index 100%
rename from src/or/fp_pair.h
rename to src/feature/dircommon/fp_pair.h
diff --git a/src/or/vote_timing_st.h b/src/feature/dircommon/vote_timing_st.h
similarity index 100%
rename from src/or/vote_timing_st.h
rename to src/feature/dircommon/vote_timing_st.h
diff --git a/src/or/voting_schedule.c b/src/feature/dircommon/voting_schedule.c
similarity index 100%
rename from src/or/voting_schedule.c
rename to src/feature/dircommon/voting_schedule.c
diff --git a/src/or/voting_schedule.h b/src/feature/dircommon/voting_schedule.h
similarity index 100%
rename from src/or/voting_schedule.h
rename to src/feature/dircommon/voting_schedule.h
diff --git a/src/or/hibernate.c b/src/feature/hibernate/hibernate.c
similarity index 100%
rename from src/or/hibernate.c
rename to src/feature/hibernate/hibernate.c
diff --git a/src/or/hibernate.h b/src/feature/hibernate/hibernate.h
similarity index 100%
rename from src/or/hibernate.h
rename to src/feature/hibernate/hibernate.h
diff --git a/src/or/hs_cache.c b/src/feature/hs/hs_cache.c
similarity index 100%
rename from src/or/hs_cache.c
rename to src/feature/hs/hs_cache.c
diff --git a/src/or/hs_cache.h b/src/feature/hs/hs_cache.h
similarity index 100%
rename from src/or/hs_cache.h
rename to src/feature/hs/hs_cache.h
diff --git a/src/or/hs_cell.c b/src/feature/hs/hs_cell.c
similarity index 100%
rename from src/or/hs_cell.c
rename to src/feature/hs/hs_cell.c
diff --git a/src/or/hs_cell.h b/src/feature/hs/hs_cell.h
similarity index 100%
rename from src/or/hs_cell.h
rename to src/feature/hs/hs_cell.h
diff --git a/src/or/hs_circuit.c b/src/feature/hs/hs_circuit.c
similarity index 100%
rename from src/or/hs_circuit.c
rename to src/feature/hs/hs_circuit.c
diff --git a/src/or/hs_circuit.h b/src/feature/hs/hs_circuit.h
similarity index 100%
rename from src/or/hs_circuit.h
rename to src/feature/hs/hs_circuit.h
diff --git a/src/or/hs_circuitmap.c b/src/feature/hs/hs_circuitmap.c
similarity index 100%
rename from src/or/hs_circuitmap.c
rename to src/feature/hs/hs_circuitmap.c
diff --git a/src/or/hs_circuitmap.h b/src/feature/hs/hs_circuitmap.h
similarity index 100%
rename from src/or/hs_circuitmap.h
rename to src/feature/hs/hs_circuitmap.h
diff --git a/src/or/hs_client.c b/src/feature/hs/hs_client.c
similarity index 100%
rename from src/or/hs_client.c
rename to src/feature/hs/hs_client.c
diff --git a/src/or/hs_client.h b/src/feature/hs/hs_client.h
similarity index 100%
rename from src/or/hs_client.h
rename to src/feature/hs/hs_client.h
diff --git a/src/or/hs_common.c b/src/feature/hs/hs_common.c
similarity index 100%
rename from src/or/hs_common.c
rename to src/feature/hs/hs_common.c
diff --git a/src/or/hs_common.h b/src/feature/hs/hs_common.h
similarity index 100%
rename from src/or/hs_common.h
rename to src/feature/hs/hs_common.h
diff --git a/src/or/hs_config.c b/src/feature/hs/hs_config.c
similarity index 100%
rename from src/or/hs_config.c
rename to src/feature/hs/hs_config.c
diff --git a/src/or/hs_config.h b/src/feature/hs/hs_config.h
similarity index 100%
rename from src/or/hs_config.h
rename to src/feature/hs/hs_config.h
diff --git a/src/or/hs_control.c b/src/feature/hs/hs_control.c
similarity index 100%
rename from src/or/hs_control.c
rename to src/feature/hs/hs_control.c
diff --git a/src/or/hs_control.h b/src/feature/hs/hs_control.h
similarity index 100%
rename from src/or/hs_control.h
rename to src/feature/hs/hs_control.h
diff --git a/src/or/hs_descriptor.c b/src/feature/hs/hs_descriptor.c
similarity index 100%
rename from src/or/hs_descriptor.c
rename to src/feature/hs/hs_descriptor.c
diff --git a/src/or/hs_descriptor.h b/src/feature/hs/hs_descriptor.h
similarity index 100%
rename from src/or/hs_descriptor.h
rename to src/feature/hs/hs_descriptor.h
diff --git a/src/or/hs_ident.c b/src/feature/hs/hs_ident.c
similarity index 100%
rename from src/or/hs_ident.c
rename to src/feature/hs/hs_ident.c
diff --git a/src/or/hs_ident.h b/src/feature/hs/hs_ident.h
similarity index 100%
rename from src/or/hs_ident.h
rename to src/feature/hs/hs_ident.h
diff --git a/src/or/hs_intropoint.c b/src/feature/hs/hs_intropoint.c
similarity index 100%
rename from src/or/hs_intropoint.c
rename to src/feature/hs/hs_intropoint.c
diff --git a/src/or/hs_intropoint.h b/src/feature/hs/hs_intropoint.h
similarity index 100%
rename from src/or/hs_intropoint.h
rename to src/feature/hs/hs_intropoint.h
diff --git a/src/or/hs_service.c b/src/feature/hs/hs_service.c
similarity index 100%
rename from src/or/hs_service.c
rename to src/feature/hs/hs_service.c
diff --git a/src/or/hs_service.h b/src/feature/hs/hs_service.h
similarity index 100%
rename from src/or/hs_service.h
rename to src/feature/hs/hs_service.h
diff --git a/src/or/hs_stats.c b/src/feature/hs/hs_stats.c
similarity index 100%
rename from src/or/hs_stats.c
rename to src/feature/hs/hs_stats.c
diff --git a/src/or/hs_stats.h b/src/feature/hs/hs_stats.h
similarity index 100%
rename from src/or/hs_stats.h
rename to src/feature/hs/hs_stats.h
diff --git a/src/or/hsdir_index_st.h b/src/feature/hs/hsdir_index_st.h
similarity index 100%
rename from src/or/hsdir_index_st.h
rename to src/feature/hs/hsdir_index_st.h
diff --git a/src/or/replaycache.c b/src/feature/hs_common/replaycache.c
similarity index 100%
rename from src/or/replaycache.c
rename to src/feature/hs_common/replaycache.c
diff --git a/src/or/replaycache.h b/src/feature/hs_common/replaycache.h
similarity index 100%
rename from src/or/replaycache.h
rename to src/feature/hs_common/replaycache.h
diff --git a/src/or/shared_random_client.c b/src/feature/hs_common/shared_random_client.c
similarity index 100%
rename from src/or/shared_random_client.c
rename to src/feature/hs_common/shared_random_client.c
diff --git a/src/or/shared_random_client.h b/src/feature/hs_common/shared_random_client.h
similarity index 100%
rename from src/or/shared_random_client.h
rename to src/feature/hs_common/shared_random_client.h
diff --git a/src/or/authority_cert_st.h b/src/feature/nodelist/authority_cert_st.h
similarity index 100%
rename from src/or/authority_cert_st.h
rename to src/feature/nodelist/authority_cert_st.h
diff --git a/src/or/desc_store_st.h b/src/feature/nodelist/desc_store_st.h
similarity index 100%
rename from src/or/desc_store_st.h
rename to src/feature/nodelist/desc_store_st.h
diff --git a/src/or/document_signature_st.h b/src/feature/nodelist/document_signature_st.h
similarity index 100%
rename from src/or/document_signature_st.h
rename to src/feature/nodelist/document_signature_st.h
diff --git a/src/or/extrainfo_st.h b/src/feature/nodelist/extrainfo_st.h
similarity index 100%
rename from src/or/extrainfo_st.h
rename to src/feature/nodelist/extrainfo_st.h
diff --git a/src/or/microdesc.c b/src/feature/nodelist/microdesc.c
similarity index 100%
rename from src/or/microdesc.c
rename to src/feature/nodelist/microdesc.c
diff --git a/src/or/microdesc.h b/src/feature/nodelist/microdesc.h
similarity index 100%
rename from src/or/microdesc.h
rename to src/feature/nodelist/microdesc.h
diff --git a/src/or/microdesc_st.h b/src/feature/nodelist/microdesc_st.h
similarity index 100%
rename from src/or/microdesc_st.h
rename to src/feature/nodelist/microdesc_st.h
diff --git a/src/or/networkstatus.c b/src/feature/nodelist/networkstatus.c
similarity index 100%
rename from src/or/networkstatus.c
rename to src/feature/nodelist/networkstatus.c
diff --git a/src/or/networkstatus.h b/src/feature/nodelist/networkstatus.h
similarity index 100%
rename from src/or/networkstatus.h
rename to src/feature/nodelist/networkstatus.h
diff --git a/src/or/networkstatus_sr_info_st.h b/src/feature/nodelist/networkstatus_sr_info_st.h
similarity index 100%
rename from src/or/networkstatus_sr_info_st.h
rename to src/feature/nodelist/networkstatus_sr_info_st.h
diff --git a/src/or/networkstatus_st.h b/src/feature/nodelist/networkstatus_st.h
similarity index 100%
rename from src/or/networkstatus_st.h
rename to src/feature/nodelist/networkstatus_st.h
diff --git a/src/or/networkstatus_voter_info_st.h b/src/feature/nodelist/networkstatus_voter_info_st.h
similarity index 100%
rename from src/or/networkstatus_voter_info_st.h
rename to src/feature/nodelist/networkstatus_voter_info_st.h
diff --git a/src/or/node_st.h b/src/feature/nodelist/node_st.h
similarity index 100%
rename from src/or/node_st.h
rename to src/feature/nodelist/node_st.h
diff --git a/src/or/nodelist.c b/src/feature/nodelist/nodelist.c
similarity index 100%
rename from src/or/nodelist.c
rename to src/feature/nodelist/nodelist.c
diff --git a/src/or/nodelist.h b/src/feature/nodelist/nodelist.h
similarity index 100%
rename from src/or/nodelist.h
rename to src/feature/nodelist/nodelist.h
diff --git a/src/or/parsecommon.c b/src/feature/nodelist/parsecommon.c
similarity index 100%
rename from src/or/parsecommon.c
rename to src/feature/nodelist/parsecommon.c
diff --git a/src/or/parsecommon.h b/src/feature/nodelist/parsecommon.h
similarity index 100%
rename from src/or/parsecommon.h
rename to src/feature/nodelist/parsecommon.h
diff --git a/src/or/routerinfo_st.h b/src/feature/nodelist/routerinfo_st.h
similarity index 100%
rename from src/or/routerinfo_st.h
rename to src/feature/nodelist/routerinfo_st.h
diff --git a/src/or/routerlist.c b/src/feature/nodelist/routerlist.c
similarity index 100%
rename from src/or/routerlist.c
rename to src/feature/nodelist/routerlist.c
diff --git a/src/or/routerlist.h b/src/feature/nodelist/routerlist.h
similarity index 100%
rename from src/or/routerlist.h
rename to src/feature/nodelist/routerlist.h
diff --git a/src/or/routerlist_st.h b/src/feature/nodelist/routerlist_st.h
similarity index 100%
rename from src/or/routerlist_st.h
rename to src/feature/nodelist/routerlist_st.h
diff --git a/src/or/routerparse.c b/src/feature/nodelist/routerparse.c
similarity index 100%
rename from src/or/routerparse.c
rename to src/feature/nodelist/routerparse.c
diff --git a/src/or/routerparse.h b/src/feature/nodelist/routerparse.h
similarity index 100%
rename from src/or/routerparse.h
rename to src/feature/nodelist/routerparse.h
diff --git a/src/or/routerset.c b/src/feature/nodelist/routerset.c
similarity index 100%
rename from src/or/routerset.c
rename to src/feature/nodelist/routerset.c
diff --git a/src/or/routerset.h b/src/feature/nodelist/routerset.h
similarity index 100%
rename from src/or/routerset.h
rename to src/feature/nodelist/routerset.h
diff --git a/src/or/routerstatus_st.h b/src/feature/nodelist/routerstatus_st.h
similarity index 100%
rename from src/or/routerstatus_st.h
rename to src/feature/nodelist/routerstatus_st.h
diff --git a/src/or/signed_descriptor_st.h b/src/feature/nodelist/signed_descriptor_st.h
similarity index 100%
rename from src/or/signed_descriptor_st.h
rename to src/feature/nodelist/signed_descriptor_st.h
diff --git a/src/or/torcert.c b/src/feature/nodelist/torcert.c
similarity index 100%
rename from src/or/torcert.c
rename to src/feature/nodelist/torcert.c
diff --git a/src/or/torcert.h b/src/feature/nodelist/torcert.h
similarity index 100%
rename from src/or/torcert.h
rename to src/feature/nodelist/torcert.h
diff --git a/src/or/vote_routerstatus_st.h b/src/feature/nodelist/vote_routerstatus_st.h
similarity index 100%
rename from src/or/vote_routerstatus_st.h
rename to src/feature/nodelist/vote_routerstatus_st.h
diff --git a/src/or/dns.c b/src/feature/relay/dns.c
similarity index 100%
rename from src/or/dns.c
rename to src/feature/relay/dns.c
diff --git a/src/or/dns.h b/src/feature/relay/dns.h
similarity index 100%
rename from src/or/dns.h
rename to src/feature/relay/dns.h
diff --git a/src/or/dns_structs.h b/src/feature/relay/dns_structs.h
similarity index 100%
rename from src/or/dns_structs.h
rename to src/feature/relay/dns_structs.h
diff --git a/src/or/ext_orport.c b/src/feature/relay/ext_orport.c
similarity index 100%
rename from src/or/ext_orport.c
rename to src/feature/relay/ext_orport.c
diff --git a/src/or/ext_orport.h b/src/feature/relay/ext_orport.h
similarity index 100%
rename from src/or/ext_orport.h
rename to src/feature/relay/ext_orport.h
diff --git a/src/or/router.c b/src/feature/relay/router.c
similarity index 100%
rename from src/or/router.c
rename to src/feature/relay/router.c
diff --git a/src/or/router.h b/src/feature/relay/router.h
similarity index 100%
rename from src/or/router.h
rename to src/feature/relay/router.h
diff --git a/src/or/routerkeys.c b/src/feature/relay/routerkeys.c
similarity index 100%
rename from src/or/routerkeys.c
rename to src/feature/relay/routerkeys.c
diff --git a/src/or/routerkeys.h b/src/feature/relay/routerkeys.h
similarity index 100%
rename from src/or/routerkeys.h
rename to src/feature/relay/routerkeys.h
diff --git a/src/or/rend_authorized_client_st.h b/src/feature/rend/rend_authorized_client_st.h
similarity index 100%
rename from src/or/rend_authorized_client_st.h
rename to src/feature/rend/rend_authorized_client_st.h
diff --git a/src/or/rend_encoded_v2_service_descriptor_st.h b/src/feature/rend/rend_encoded_v2_service_descriptor_st.h
similarity index 100%
rename from src/or/rend_encoded_v2_service_descriptor_st.h
rename to src/feature/rend/rend_encoded_v2_service_descriptor_st.h
diff --git a/src/or/rend_intro_point_st.h b/src/feature/rend/rend_intro_point_st.h
similarity index 100%
rename from src/or/rend_intro_point_st.h
rename to src/feature/rend/rend_intro_point_st.h
diff --git a/src/or/rend_service_descriptor_st.h b/src/feature/rend/rend_service_descriptor_st.h
similarity index 100%
rename from src/or/rend_service_descriptor_st.h
rename to src/feature/rend/rend_service_descriptor_st.h
diff --git a/src/or/rendcache.c b/src/feature/rend/rendcache.c
similarity index 100%
rename from src/or/rendcache.c
rename to src/feature/rend/rendcache.c
diff --git a/src/or/rendcache.h b/src/feature/rend/rendcache.h
similarity index 100%
rename from src/or/rendcache.h
rename to src/feature/rend/rendcache.h
diff --git a/src/or/rendclient.c b/src/feature/rend/rendclient.c
similarity index 100%
rename from src/or/rendclient.c
rename to src/feature/rend/rendclient.c
diff --git a/src/or/rendclient.h b/src/feature/rend/rendclient.h
similarity index 100%
rename from src/or/rendclient.h
rename to src/feature/rend/rendclient.h
diff --git a/src/or/rendcommon.c b/src/feature/rend/rendcommon.c
similarity index 100%
rename from src/or/rendcommon.c
rename to src/feature/rend/rendcommon.c
diff --git a/src/or/rendcommon.h b/src/feature/rend/rendcommon.h
similarity index 100%
rename from src/or/rendcommon.h
rename to src/feature/rend/rendcommon.h
diff --git a/src/or/rendmid.c b/src/feature/rend/rendmid.c
similarity index 100%
rename from src/or/rendmid.c
rename to src/feature/rend/rendmid.c
diff --git a/src/or/rendmid.h b/src/feature/rend/rendmid.h
similarity index 100%
rename from src/or/rendmid.h
rename to src/feature/rend/rendmid.h
diff --git a/src/or/rendservice.c b/src/feature/rend/rendservice.c
similarity index 100%
rename from src/or/rendservice.c
rename to src/feature/rend/rendservice.c
diff --git a/src/or/rendservice.h b/src/feature/rend/rendservice.h
similarity index 100%
rename from src/or/rendservice.h
rename to src/feature/rend/rendservice.h
diff --git a/src/or/geoip.c b/src/feature/stats/geoip.c
similarity index 100%
rename from src/or/geoip.c
rename to src/feature/stats/geoip.c
diff --git a/src/or/geoip.h b/src/feature/stats/geoip.h
similarity index 100%
rename from src/or/geoip.h
rename to src/feature/stats/geoip.h
diff --git a/src/or/rephist.c b/src/feature/stats/rephist.c
similarity index 100%
rename from src/or/rephist.c
rename to src/feature/stats/rephist.c
diff --git a/src/or/rephist.h b/src/feature/stats/rephist.h
similarity index 100%
rename from src/or/rephist.h
rename to src/feature/stats/rephist.h
diff --git a/src/or/Makefile.nmake b/src/or/Makefile.nmake
deleted file mode 100644
index 429ae6785..000000000
--- a/src/or/Makefile.nmake
+++ /dev/null
@@ -1,79 +0,0 @@
-all: tor.exe
-
-CFLAGS = /O2 /MT /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common \
- /I ..\ext
-
-LIBS = ..\..\..\build-alpha\lib\libevent.lib \
- ..\..\..\build-alpha\lib\libcrypto.lib \
- ..\..\..\build-alpha\lib\libssl.lib \
- ..\..\..\build-alpha\lib\libz.lib \
- ws2_32.lib advapi32.lib shell32.lib \
- crypt32.lib gdi32.lib user32.lib
-
-LIBTOR_OBJECTS = \
- addressmap.obj \
- buffers.obj \
- channel.obj \
- channelpadding.obj \
- channeltls.obj \
- circpathbias.obj \
- circuitbuild.obj \
- circuitlist.obj \
- circuitmux.obj \
- circuitmux_ewma.obj \
- circuitstats.obj \
- circuituse.obj \
- command.obj \
- config.obj \
- config_codedigest.obj \
- confparse.obj \
- connection.obj \
- connection_edge.obj \
- connection_or.obj \
- control.obj \
- cpuworker.obj \
- directory.obj \
- dirserv.obj \
- dirvote.obj \
- dns.obj \
- dnsserv.obj \
- ext_orport.obj \
- fp_pair.obj \
- entrynodes.obj \
- geoip.obj \
- hibernate.obj \
- main.obj \
- microdesc.obj \
- networkstatus.obj \
- nodelist.obj \
- ntmain.obj \
- onion.obj \
- onion_fast.obj \
- onion_ntor.obj \
- onion_tap.obj \
- policies.obj \
- reasons.obj \
- relay.obj \
- rendclient.obj \
- rendcommon.obj \
- rendmid.obj \
- rendservice.obj \
- rephist.obj \
- replaycache.obj \
- router.obj \
- routerlist.obj \
- routerparse.obj \
- routerset.obj \
- scheduler.obj \
- statefile.obj \
- status.obj \
- transports.obj
-
-libtor.lib: $(LIBTOR_OBJECTS)
- lib $(LIBTOR_OBJECTS) /out:$@
-
-tor.exe: libtor.lib tor_main.obj
- $(CC) $(CFLAGS) $(LIBS) libtor.lib ..\common\*.lib ..\ext\*.lib tor_main.obj /Fe$@
-
-clean:
- del $(LIBTOR_OBJECTS) tor_main.obj *.lib tor.exe
1
0
05 Jul '18
commit 4eac5c6ce6f19829bf1aed46e8d3d72fa3ae1a74
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 17:15:24 2018 -0400
And tell build.rs to stop looking in src/common
---
src/rust/build.rs | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/rust/build.rs b/src/rust/build.rs
index eb281b6ea..2cf85b404 100644
--- a/src/rust/build.rs
+++ b/src/rust/build.rs
@@ -139,7 +139,6 @@ pub fn main() {
cfg.from_cflags("TOR_LDFLAGS_libevent");
cfg.link_relpath("src/lib");
- cfg.link_relpath("src/common");
cfg.link_relpath("src/ext/keccak-tiny");
cfg.link_relpath("src/ext/ed25519/ref10");
cfg.link_relpath("src/ext/ed25519/donna");
1
0
commit c73bb9937d3fa0512d8f8ce50c847999b84d183f
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 17:14:55 2018 -0400
Fix build.rs to handle removed common.
---
src/rust/build.rs | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/rust/build.rs b/src/rust/build.rs
index 4e401f527..eb281b6ea 100644
--- a/src/rust/build.rs
+++ b/src/rust/build.rs
@@ -150,7 +150,6 @@ pub fn main() {
// tor uses. We must be careful with factoring and dependencies
// moving forward!
cfg.component("tor-crypt-ops-testing");
- cfg.component("or-testing");
cfg.component("tor-sandbox");
cfg.component("tor-encoding-testing");
cfg.component("tor-net");
@@ -165,7 +164,6 @@ pub fn main() {
cfg.component("tor-malloc");
cfg.component("tor-wallclock");
cfg.component("tor-err-testing");
- cfg.component("or-event-testing");
cfg.component("tor-intmath-testing");
cfg.component("tor-ctime-testing");
cfg.component("curve25519_donna");
1
0
commit 753b797ca4041c74c073c11b550c11b3f85fe74b
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 15:50:20 2018 -0400
Fix up .may_includes for evloop.
---
src/common/.may_include | 8 --------
src/lib/evloop/.may_include | 1 +
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/common/.may_include b/src/common/.may_include
deleted file mode 100644
index a01a9db0b..000000000
--- a/src/common/.may_include
+++ /dev/null
@@ -1,8 +0,0 @@
-orconfig.h
-common/*.h
-lib/*/*.h
-
-# XXXX These all belong somewhere else
-siphash.h
-src/ext/timeouts/timeout.c
-tor_queue.h
diff --git a/src/lib/evloop/.may_include b/src/lib/evloop/.may_include
index 205f41b38..30af50891 100644
--- a/src/lib/evloop/.may_include
+++ b/src/lib/evloop/.may_include
@@ -13,3 +13,4 @@ lib/thread/*.h
lib/time/*.h
src/ext/timeouts/timeout.c
+tor_queue.h
\ No newline at end of file
1
0
commit 1dd5b5f44134ab80045835da1eeb62d007455ccd
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 15:44:33 2018 -0400
Add a missing include.
---
src/test/test_crypto_openssl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/test_crypto_openssl.c b/src/test/test_crypto_openssl.c
index 1d31ad027..b1a5613ea 100644
--- a/src/test/test_crypto_openssl.c
+++ b/src/test/test_crypto_openssl.c
@@ -10,6 +10,7 @@
#include "lib/crypt_ops/compat_openssl.h"
#include "lib/crypt_ops/crypto_rand.h"
#include "lib/encoding/binascii.h"
+#include "lib/malloc/util_malloc.h"
#include "test/test.h"
#include <openssl/evp.h>
1
0
05 Jul '18
commit 947de40d198d83e561320afe5d0146f43dc9192a
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Thu Jul 5 15:07:08 2018 -0400
Move openbsd-malloc responsibility to lib/malloc
(Note that this is not believed to work, but we may as well have it
in the right place till we remove it)
---
src/common/include.am | 6 ------
src/lib/malloc/include.am | 4 ++++
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/common/include.am b/src/common/include.am
index 0a58a39ae..8a2d2e114 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -11,12 +11,6 @@ endif
EXTRA_DIST += src/common/Makefile.nmake
-if USE_OPENBSD_MALLOC
-libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
-else
-libor_extra_source=
-endif
-
LIBOR_A_SRC = \
src/common/token_bucket.c \
src/common/workqueue.c \
diff --git a/src/lib/malloc/include.am b/src/lib/malloc/include.am
index b4c5cae54..50de9cb73 100644
--- a/src/lib/malloc/include.am
+++ b/src/lib/malloc/include.am
@@ -8,6 +8,10 @@ endif
src_lib_libtor_malloc_a_SOURCES = \
src/lib/malloc/util_malloc.c
+if USE_OPENBSD_MALLOC
+src_lib_libtor_malloc_a_SOURCES += src/ext/OpenBSD_malloc_Linux.c
+endif
+
src_lib_libtor_malloc_testing_a_SOURCES = \
$(src_lib_libtor_malloc_a_SOURCES)
src_lib_libtor_malloc_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
1
0