#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] |
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 |
Pointer to the raw server descriptor, preceded by annotations. Not necessarily NUL-terminated. If saved_location is SAVED_IN_CACHE, this pointer is null.
Referenced by authority_cert_dup(), authority_cert_free(), authority_cert_parse_from_string(), dirserv_add_descriptor(), dirvote_add_vote(), extrainfo_free(), extrainfo_parse_entry_from_string(), format_networkstatus_vote(), init_keys(), router_parse_entry_from_string(), router_rebuild_descriptor(), router_upload_dir_desc_to_dirservers(), routerinfo_free(), routerlist_reparse_old(), signed_descriptor_free(), signed_descriptor_from_routerinfo(), and signed_descriptor_get_body_impl().
Length of the annotations preceding the server descriptor.
Referenced by router_parse_entry_from_string(), routerlist_reparse_old(), signed_desc_append_to_journal(), and signed_descriptor_get_body_impl().
Length of the server descriptor.
Referenced by authority_cert_dup(), authority_cert_parse_from_string(), connection_dirserv_add_servers_to_outbuf(), dirserv_add_descriptor(), dirserv_add_extrainfo(), dirserv_estimate_data_size(), extrainfo_insert(), extrainfo_parse_entry_from_string(), format_networkstatus_vote(), getinfo_helper_dir(), munge_extrainfo_into_routerinfo(), router_get_my_descriptor(), router_parse_entry_from_string(), router_rebuild_descriptor(), router_upload_dir_desc_to_dirservers(), routerlist_remove(), routerlist_remove_old(), routerlist_reparse_old(), routerlist_replace(), signed_desc_append_to_journal(), and signed_descriptor_get_body_impl().
char signed_descriptor_t::signed_descriptor_digest[DIGEST_LEN] |
Digest of the server descriptor, computed as specified in dir-spec.txt.
Referenced by already_have_cert(), authority_cert_parse_from_string(), extrainfo_insert(), extrainfo_parse_entry_from_string(), router_add_to_routerlist(), router_extrainfo_digest_is_me(), router_parse_entry_from_string(), router_rebuild_descriptor(), routerinfo_incompatible_with_extrainfo(), routerlist_insert(), routerlist_insert_old(), routerlist_remove(), routerlist_remove_old(), routerlist_remove_old_cached_routers_with_id(), routerlist_remove_old_routers(), routerlist_replace(), routerstatus_format_entry(), set_routerstatus_from_routerinfo(), and signed_desc_digest_is_recognized().
char signed_descriptor_t::identity_digest[DIGEST_LEN] |
Identity digest of the router.
Referenced by _compare_old_routers_by_identity(), _compare_routerinfo_by_id_digest(), _compare_routerinfo_by_ip_and_bw(), add_an_entry_guard(), already_have_cert(), authority_cert_parse_from_string(), circuit_rep_hist_note_result(), connection_ap_can_use_exit(), consider_testing_reachability(), directory_get_from_dirserver(), dirserv_add_descriptor(), dirserv_add_extrainfo(), dirserv_get_networkstatus_v2_fingerprints(), dirserv_get_routerdesc_fingerprints(), dirserv_set_router_is_running(), dirserv_single_reachability_test(), dirserv_thinks_router_is_unreliable(), dirvote_act(), dirvote_add_vote(), dirvote_get_vote(), extend_info_from_router(), extrainfo_dump_to_string(), extrainfo_insert(), extrainfo_parse_entry_from_string(), format_networkstatus_vote(), getinfo_helper_misc(), hid_serv_acting_as_directory(), hid_serv_responsible_for_desc_id(), list_single_server_status(), networkstatus_check_document_signature(), networkstatus_parse_vote_from_string(), router_add_to_routerlist(), router_get_my_share_of_directory_requests(), router_get_verbose_nickname(), router_hex_digest_matches(), router_is_me(), router_parse_entry_from_string(), router_rebuild_descriptor(), routerinfo_get_configured_bridge(), routerinfo_incompatible_with_extrainfo(), routerlist_insert(), routerlist_remove(), routerlist_remove_old_cached_routers_with_id(), routerlist_remove_old_routers(), routerlist_replace(), routerset_contains_router(), set_routerstatus_from_routerinfo(), signed_desc_digest_is_recognized(), smartlist_choose_by_bandwidth(), smartlist_choose_by_bandwidth_weights(), trusted_dirs_load_certs_from_string(), and update_extrainfo_downloads().
Declared publication time of the descriptor.
Referenced by _compare_old_routers_by_identity(), _compare_signed_descriptors_by_age(), authdir_wants_to_reject_router(), authority_cert_get_newest_by_id(), authority_cert_parse_from_string(), dirserv_add_descriptor(), dirserv_get_routerdescs(), extrainfo_dump_to_string(), extrainfo_parse_entry_from_string(), get_signed_descriptor_by_fp(), real_uptime(), rep_hist_get_router_stability_doc(), router_add_to_routerlist(), router_differences_are_cosmetic(), router_dump_router_to_string(), router_is_active(), router_parse_entry_from_string(), router_rebuild_descriptor(), routerinfo_incompatible_with_extrainfo(), routerlist_remove_old_cached_routers_with_id(), routerlist_remove_old_routers(), set_routerstatus_from_routerinfo(), trusted_dirs_load_certs_from_string(), and trusted_dirs_remove_old_certs().
char signed_descriptor_t::extra_info_digest[DIGEST_LEN] |
For routerdescs only: digest of the corresponding extrainfo.
Referenced by get_signed_descriptor_by_fp(), router_dump_router_to_string(), router_parse_entry_from_string(), router_rebuild_descriptor(), routerinfo_incompatible_with_extrainfo(), routerlist_insert(), routerlist_insert_old(), routerlist_remove(), routerlist_remove_old(), routerlist_replace(), and update_extrainfo_downloads().
For routerdescs only: Status of downloading the corresponding extrainfo.
Referenced by dir_routerdesc_download_failed(), and update_extrainfo_downloads().
Where is the descriptor saved?
Referenced by authority_cert_dup(), authority_cert_parse_from_string(), router_get_my_descriptor(), router_parse_list_from_string(), signed_desc_append_to_journal(), and signed_descriptor_get_body_impl().
If saved_location is SAVED_IN_CACHE or SAVED_IN_JOURNAL, the offset of this descriptor in the corresponding file.
Referenced by router_parse_list_from_string(), signed_desc_append_to_journal(), and signed_descriptor_get_body_impl().
What position is this descriptor within routerlist->routers or routerlist->old_routers? -1 for none.
Referenced by router_parse_entry_from_string(), router_rebuild_descriptor(), routerlist_insert(), routerlist_insert_old(), routerlist_remove(), routerlist_remove_old(), routerlist_remove_old_routers(), routerlist_reparse_old(), routerlist_replace(), and signed_descriptor_from_routerinfo().
The valid-until time of the most recent consensus that listed this descriptor, or a bit after the publication time of the most recent v2 networkstatus that listed it. 0 for "never listed in a consensus or status, so far as we know."
Referenced by router_set_networkstatus_v2(), routerlist_remove_old_cached_routers_with_id(), and routerlist_remove_old_routers().