Tor
0.4.7.0-alpha-dev
|
Header file for process_descs.c. More...
Go to the source code of this file.
Data Structures | |
struct | authdir_config_t |
Typedefs | |
typedef uint32_t | rtr_flags_t |
Functions | |
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.
typedef uint32_t rtr_flags_t |
Target of status_by_digest map.
Definition at line 23 of file process_descs.h.
int add_ed25519_to_dir | ( | const ed25519_public_key_t * | edkey, |
authdir_config_t * | list, | ||
rtr_flags_t | add_status | ||
) |
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.
int add_rsa_fingerprint_to_dir | ( | const char * | fp, |
authdir_config_t * | list, | ||
rtr_flags_t | add_status | ||
) |
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.
void dirserv_free_fingerprint_list | ( | void | ) |
Clear the current fingerprint list.
Definition at line 521 of file process_descs.c.