Tor 0.4.9.8
Loading...
Searching...
No Matches
authmode.c File Reference

What kind of directory authority are we? More...

Go to the source code of this file.

Functions

int authdir_mode (const or_options_t *options)
 
int authdir_mode_v3 (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)

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

Definition at line 25 of file authmode.c.

◆ 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 76 of file authmode.c.

◆ 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 43 of file authmode.c.

◆ 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 58 of file authmode.c.

◆ 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 68 of file authmode.c.

◆ authdir_mode_v3()

int authdir_mode_v3 ( const or_options_t * options)

Definition at line 33 of file authmode.c.