37 const smartlist_t *router_get_trusted_dir_servers(
void);
38 const smartlist_t *router_get_fallback_dir_servers(
void);
40 smartlist_t *router_get_fallback_dir_servers_mutable(
void);
65 #define router_addr_is_trusted_dir(d) \
66 router_addr_is_trusted_dir_type((d), NO_DIRINFO)
68 #define router_digest_is_trusted_dir(d) \
69 router_digest_is_trusted_dir_type((d), NO_DIRINFO)
72 uint16_t dir_port, uint16_t or_port,
74 const char *digest,
const char *v3_auth_digest,
80 uint16_t dir_port, uint16_t or_port,
82 const char *id_digest,
double weight);
86 void dirlist_free_all(
void);
dir_server_t * fallback_dir_server_new(const tor_addr_t *addr, uint16_t dir_port, uint16_t or_port, const tor_addr_port_t *addrport_ipv6, const char *id_digest, double weight)
bool router_addr_is_trusted_dir_type(const tor_addr_t *addr, dirinfo_type_t type)
void trusted_dir_server_add_dirport(dir_server_t *ds, auth_dirport_usage_t usage, const tor_addr_port_t *dirport)
void mark_all_dirservers_up(smartlist_t *server_list)
int get_n_authorities(dirinfo_type_t type)
dir_server_t * trusteddirserver_get_by_v3_auth_digest(const char *d)
const tor_addr_port_t * trusted_dir_server_get_dirport_exact(const dir_server_t *ds, auth_dirport_usage_t usage, int addr_family)
int router_digest_is_trusted_dir_type(const char *digest, dirinfo_type_t type)
void clear_dir_servers(void)
auth_dirport_usage_t auth_dirport_usage_for_purpose(int purpose)
const tor_addr_port_t * trusted_dir_server_get_dirport(const dir_server_t *ds, auth_dirport_usage_t usage, int addr_family)
void dir_server_add(dir_server_t *ent)
int router_digest_is_fallback_dir(const char *digest)
void dirlist_add_trusted_dir_addresses(void)
dir_server_t * router_get_fallback_dirserver_by_digest(const char *digest)
dir_server_t * trusted_dir_server_new(const char *nickname, const char *address, uint16_t dir_port, uint16_t or_port, const tor_addr_port_t *addrport_ipv6, const char *digest, const char *v3_auth_digest, dirinfo_type_t type, double weight)
smartlist_t * router_get_trusted_dir_servers_mutable(void)
dir_server_t * router_get_trusteddirserver_by_digest(const char *d)
auth_dirport_usage_t usage
#define MOCK_DECL(rv, funcname, arglist)