tor  0.4.2.0-alpha-dev
Functions
authmode.c File Reference
#include "core/or/or.h"
#include "app/config/config.h"
#include "feature/dirauth/authmode.h"
#include "feature/nodelist/routerinfo_st.h"

Go to the source code of this file.

Functions

int authdir_mode (const or_options_t *options)
 
int authdir_mode_handles_descs (const or_options_t *options, int purpose)
 
int authdir_mode_publishes_statuses (const or_options_t *options)
 
int authdir_mode_tests_reachability (const or_options_t *options)
 
int authdir_mode_bridge (const or_options_t *options)
 

Detailed Description

What kind of directory authority are we?

If we're not an authority, these functions are all replaced with 0 in authmode.h.

Definition in file authmode.c.

Function Documentation

◆ authdir_mode()

int authdir_mode ( const or_options_t options)

◆ authdir_mode_bridge()

int authdir_mode_bridge ( const or_options_t options)

Return true iff we believe ourselves to be a bridge authoritative directory server.

Definition at line 67 of file authmode.c.

References authdir_mode(), and or_options_t::BridgeAuthoritativeDir.

Referenced by authdir_mode_publishes_statuses(), and dirserv_test_reachability().

◆ authdir_mode_handles_descs()

int authdir_mode_handles_descs ( const or_options_t options,
int  purpose 
)

Return true iff we are an authoritative directory server that is authoritative about receiving and serving descriptors of type purpose on its dirport.

Definition at line 34 of file authmode.c.

Referenced by dirserv_should_launch_reachability_test(), and router_add_to_routerlist().

◆ authdir_mode_publishes_statuses()

int authdir_mode_publishes_statuses ( const or_options_t options)

Return true iff we are an authoritative directory server that publishes its own network statuses.

Definition at line 49 of file authmode.c.

References authdir_mode(), and authdir_mode_bridge().

◆ authdir_mode_tests_reachability()

int authdir_mode_tests_reachability ( const or_options_t options)

Return true iff we are an authoritative directory server that tests reachability of the descriptors it learns about.

Definition at line 59 of file authmode.c.

References authdir_mode().