Header file for process_descs.c.
More...
Go to the source code of this file.
|
int | add_rsa_fingerprint_to_dir (const char *fp, struct authdir_config_t *list, rtr_flags_t add_status) |
|
int | add_ed25519_to_dir (const ed25519_public_key_t *edkey, struct authdir_config_t *list, rtr_flags_t add_status) |
|
void | dirserv_free_fingerprint_list (void) |
|
static int | dirserv_load_fingerprint_file (void) |
|
static enum was_router_added_t | dirserv_add_multiple_descriptors (const char *desc, size_t desclen, uint8_t purpose, const char *source, const char **msg) |
|
static enum was_router_added_t | dirserv_add_descriptor (routerinfo_t *ri, const char **msg, const char *source) |
|
static int | dirserv_would_reject_router (const routerstatus_t *rs, const vote_routerstatus_t *vrs) |
|
static int | authdir_wants_to_reject_router (routerinfo_t *ri, const char **msg, int complain, int *valid_out) |
|
static int | dirserv_add_own_fingerprint (crypto_pk_t *pk, const ed25519_public_key_t *edkey) |
|
static uint32_t | dirserv_router_get_status (const routerinfo_t *router, const char **msg, int severity) |
|
static void | dirserv_set_node_flags_from_authoritative_status (node_t *node, uint32_t authstatus) |
|
Header file for process_descs.c.
Definition in file process_descs.h.
◆ rtr_flags_t
◆ add_ed25519_to_dir()
Add the ed25519 key edkey to the smartlist of fingerprint_entry_t's list, or-ing the currently set status flags with add_status. Return -1 if we were unable to decode the key, else return 0.
Definition at line 135 of file process_descs.c.
◆ add_rsa_fingerprint_to_dir()
Add the fingerprint fp to the smartlist of fingerprint_entry_t's list, or-ing the currently set status flags with add_status.
Definition at line 100 of file process_descs.c.
◆ authdir_wants_to_reject_router()
static int authdir_wants_to_reject_router |
( |
routerinfo_t * |
ri, |
|
|
const char ** |
msg, |
|
|
int |
complain, |
|
|
int * |
valid_out |
|
) |
| |
|
inlinestatic |
◆ dirserv_add_descriptor()
◆ dirserv_add_multiple_descriptors()
static enum was_router_added_t dirserv_add_multiple_descriptors |
( |
const char * |
desc, |
|
|
size_t |
desclen, |
|
|
uint8_t |
purpose, |
|
|
const char * |
source, |
|
|
const char ** |
msg |
|
) |
| |
|
inlinestatic |
◆ dirserv_add_own_fingerprint()
◆ dirserv_free_fingerprint_list()
void dirserv_free_fingerprint_list |
( |
void |
| ) |
|
◆ dirserv_load_fingerprint_file()
static int dirserv_load_fingerprint_file |
( |
void |
| ) |
|
|
inlinestatic |
◆ dirserv_router_get_status()
static uint32_t dirserv_router_get_status |
( |
const routerinfo_t * |
router, |
|
|
const char ** |
msg, |
|
|
int |
severity |
|
) |
| |
|
inlinestatic |
◆ dirserv_set_node_flags_from_authoritative_status()
static void dirserv_set_node_flags_from_authoritative_status |
( |
node_t * |
node, |
|
|
uint32_t |
authstatus |
|
) |
| |
|
inlinestatic |
◆ dirserv_would_reject_router()