Tor 0.4.9.0-alpha-dev
Functions
authmode.c File Reference

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

#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_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)

◆ 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.

Referenced by authdir_mode_publishes_statuses().

◆ 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.

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 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.

Referenced by launch_reachability_tests_callback(), save_stability_callback(), and tor_cleanup().

◆ authdir_mode_v3()

int authdir_mode_v3 ( const or_options_t options)

Definition at line 33 of file authmode.c.