mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Split routerlist.c into 4 separate modules
There are now separate modules for:
* the list of router descriptors
* the list of authorities and fallbacks
* managing authority certificates
* selecting random nodes
This commit is contained in:
@@ -80,9 +80,12 @@ LIBTOR_APP_A_SOURCES = \
|
||||
src/feature/hs/hs_stats.c \
|
||||
src/feature/hs_common/replaycache.c \
|
||||
src/feature/hs_common/shared_random_client.c \
|
||||
src/feature/nodelist/authcert.c \
|
||||
src/feature/nodelist/dirlist.c \
|
||||
src/feature/nodelist/microdesc.c \
|
||||
src/feature/nodelist/networkstatus.c \
|
||||
src/feature/nodelist/nodelist.c \
|
||||
src/feature/nodelist/node_select.c \
|
||||
src/feature/nodelist/parsecommon.c \
|
||||
src/feature/nodelist/routerlist.c \
|
||||
src/feature/nodelist/routerparse.c \
|
||||
@@ -256,8 +259,10 @@ noinst_HEADERS += \
|
||||
src/feature/hs/hsdir_index_st.h \
|
||||
src/feature/hs_common/replaycache.h \
|
||||
src/feature/hs_common/shared_random_client.h \
|
||||
src/feature/nodelist/authcert.h \
|
||||
src/feature/nodelist/authority_cert_st.h \
|
||||
src/feature/nodelist/desc_store_st.h \
|
||||
src/feature/nodelist/dirlist.h \
|
||||
src/feature/nodelist/document_signature_st.h \
|
||||
src/feature/nodelist/extrainfo_st.h \
|
||||
src/feature/nodelist/microdesc.h \
|
||||
@@ -268,6 +273,7 @@ noinst_HEADERS += \
|
||||
src/feature/nodelist/networkstatus_voter_info_st.h \
|
||||
src/feature/nodelist/node_st.h \
|
||||
src/feature/nodelist/nodelist.h \
|
||||
src/feature/nodelist/node_select.h \
|
||||
src/feature/nodelist/parsecommon.h \
|
||||
src/feature/nodelist/routerinfo_st.h \
|
||||
src/feature/nodelist/routerlist.h \
|
||||
|
||||
@@ -101,6 +101,8 @@
|
||||
#include "feature/stats/rephist.h"
|
||||
#include "feature/relay/router.h"
|
||||
#include "feature/relay/routerkeys.h"
|
||||
#include "feature/nodelist/authcert.h"
|
||||
#include "feature/nodelist/dirlist.h"
|
||||
#include "feature/nodelist/routerlist.h"
|
||||
#include "feature/nodelist/routerparse.h"
|
||||
#include "core/or/scheduler.h"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
#include "core/or/relay.h"
|
||||
#include "feature/stats/rephist.h"
|
||||
#include "feature/relay/router.h"
|
||||
#include "feature/nodelist/routerlist.h"
|
||||
#include "feature/nodelist/dirlist.h"
|
||||
#include "core/or/scheduler.h"
|
||||
#include "feature/nodelist/torcert.h"
|
||||
#include "feature/nodelist/networkstatus.h"
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
#include "feature/rend/rendcommon.h"
|
||||
#include "feature/stats/rephist.h"
|
||||
#include "feature/relay/router.h"
|
||||
#include "feature/nodelist/node_select.h"
|
||||
#include "feature/nodelist/routerlist.h"
|
||||
#include "feature/nodelist/routerparse.h"
|
||||
#include "feature/nodelist/routerset.h"
|
||||
@@ -3007,4 +3008,3 @@ circuit_upgrade_circuits_from_guard_wait(void)
|
||||
|
||||
smartlist_free(to_upgrade);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
#include "feature/stats/rephist.h"
|
||||
#include "feature/relay/router.h"
|
||||
#include "feature/relay/routerkeys.h"
|
||||
#include "feature/nodelist/dirlist.h"
|
||||
#include "feature/nodelist/routerlist.h"
|
||||
#include "feature/relay/ext_orport.h"
|
||||
#include "core/or/scheduler.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "core/or/or.h"
|
||||
#include "app/config/config.h"
|
||||
#include "core/or/reasons.h"
|
||||
#include "feature/nodelist/routerlist.h"
|
||||
#include "feature/nodelist/node_select.h"
|
||||
#include "lib/tls/tortls.h"
|
||||
|
||||
/***************************** Edge (stream) reasons **********************/
|
||||
|
||||
Reference in New Issue
Block a user