tor
master
|
#include <or.h>
Data Fields | |
char * | signed_descriptor_body |
size_t | annotations_len |
size_t | signed_descriptor_len |
char | signed_descriptor_digest [DIGEST_LEN] |
char | identity_digest [DIGEST_LEN] |
time_t | published_on |
char | extra_info_digest [DIGEST_LEN] |
char | extra_info_digest256 [DIGEST256_LEN] |
struct tor_cert_st * | signing_key_cert |
download_status_t | ei_dl_status |
saved_location_t | saved_location |
off_t | saved_offset |
int | routerlist_index |
time_t | last_listed_as_valid_until |
unsigned int | do_not_cache: 1 |
unsigned int | is_extrainfo: 1 |
unsigned int | extrainfo_is_bogus: 1 |
unsigned int | send_unencrypted: 1 |
Information need to cache an onion router's descriptor.
size_t annotations_len |
Length of the annotations preceding the server descriptor.
download_status_t ei_dl_status |
For routerdescs only: Status of downloading the corresponding extrainfo.
char extra_info_digest[DIGEST_LEN] |
For routerdescs only: digest of the corresponding extrainfo.
char extra_info_digest256[DIGEST256_LEN] |
For routerdescs only: A SHA256-digest of the extrainfo (if any)
char identity_digest[DIGEST_LEN] |
Identity digest of the router.
time_t last_listed_as_valid_until |
The valid-until time of the most recent consensus that listed this descriptor. 0 for "never listed in a consensus, so far as we know."
time_t published_on |
Declared publication time of the descriptor.
int routerlist_index |
What position is this descriptor within routerlist->routers or routerlist->old_routers? -1 for none.
saved_location_t saved_location |
Where is the descriptor saved?
off_t saved_offset |
If saved_location is SAVED_IN_CACHE or SAVED_IN_JOURNAL, the offset of this descriptor in the corresponding file.
char* signed_descriptor_body |
Pointer to the raw server descriptor, preceded by annotations. Not necessarily NUL-terminated. If saved_location is SAVED_IN_CACHE, this pointer is null.
char signed_descriptor_digest[DIGEST_LEN] |
Digest of the server descriptor, computed as specified in dir-spec.txt.
size_t signed_descriptor_len |
Length of the server descriptor.
struct tor_cert_st* signing_key_cert |
Certificate for ed25519 signing key.