|
Tor 0.4.9.8
|
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) |
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.
| 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.
| 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.
| 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.
| 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.
| 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.
| int authdir_mode_v3 | ( | const or_options_t * | options | ) |
Definition at line 33 of file authmode.c.