Tor  0.4.4.0-alpha-dev
Data Structures | Typedefs | Functions
process_descs.h File Reference

Header file for process_descs.c. More...

#include "feature/nodelist/routerlist.h"
#include "lib/crypt_ops/crypto_ed25519.h"

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)
 

Detailed Description

Header file for process_descs.c.

Definition in file process_descs.h.

Typedef Documentation

◆ rtr_flags_t

typedef uint32_t rtr_flags_t

Target of status_by_digest map.

Definition at line 20 of file process_descs.h.

Function Documentation

◆ add_ed25519_to_dir()

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 134 of file process_descs.c.

◆ add_rsa_fingerprint_to_dir()

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 99 of file process_descs.c.

◆ dirserv_free_fingerprint_list()

void dirserv_free_fingerprint_list ( void  )

Clear the current fingerprint list.

Definition at line 518 of file process_descs.c.