Tor 0.4.9.3-alpha-dev
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
cached_dir_t Struct Reference

#include <cached_dir_st.h>

Data Fields

char * dir
 
char * dir_compressed
 
size_t dir_len
 
size_t dir_compressed_len
 
time_t published
 
common_digests_t digests
 
uint8_t digest_sha3_as_signed [DIGEST256_LEN]
 
int refcnt
 

Detailed Description

A cached_dir_t represents a cacheable directory object, along with its compressed form.

Definition at line 17 of file cached_dir_st.h.

Field Documentation

◆ digest_sha3_as_signed

uint8_t digest_sha3_as_signed[DIGEST256_LEN]

Sha3 digest (also ns only)

Definition at line 25 of file cached_dir_st.h.

Referenced by dir_consensus_request_set_additional_headers(), and dirserv_set_cached_consensus_networkstatus().

◆ digests

Digests of this object (networkstatus only)

Definition at line 23 of file cached_dir_st.h.

Referenced by dirserv_set_cached_consensus_networkstatus().

◆ dir

char* dir

Contents of this object, NUL-terminated.

Definition at line 18 of file cached_dir_st.h.

Referenced by clear_cached_dir(), dirvote_perform_vote(), getinfo_helper_current_consensus(), handle_response_fetch_consensus(), and new_cached_dir().

◆ dir_compressed

char* dir_compressed

Compressed contents of this object.

Definition at line 19 of file cached_dir_st.h.

Referenced by clear_cached_dir(), new_cached_dir(), and spooled_resource_flush_some().

◆ dir_compressed_len

size_t dir_compressed_len

Length of dir_compressed.

Definition at line 21 of file cached_dir_st.h.

Referenced by new_cached_dir(), spooled_resource_estimate_size(), and spooled_resource_flush_some().

◆ dir_len

size_t dir_len

Length of dir (not counting its NUL).

Definition at line 20 of file cached_dir_st.h.

Referenced by dirvote_perform_vote(), handle_response_fetch_consensus(), new_cached_dir(), and spooled_resource_estimate_size().

◆ published

time_t published

When was this object published.

Definition at line 22 of file cached_dir_st.h.

Referenced by dir_consensus_request_set_additional_headers(), new_cached_dir(), and spooled_resource_lookup_cached_dir().

◆ refcnt

int refcnt

Reference count for this cached_dir_t.

Definition at line 26 of file cached_dir_st.h.

Referenced by cached_dir_decref(), new_cached_dir(), and spooled_resource_flush_some().


The documentation for this struct was generated from the following file: