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.

◆ digests

Digests of this object (networkstatus only)

Definition at line 23 of file cached_dir_st.h.

◆ dir

char* dir

Contents of this object, NUL-terminated.

Definition at line 18 of file cached_dir_st.h.

Referenced by clear_cached_dir(), and handle_response_fetch_consensus().

◆ 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().

◆ dir_compressed_len

size_t dir_compressed_len

Length of dir_compressed.

Definition at line 21 of file cached_dir_st.h.

Referenced by spooled_resource_estimate_size().

◆ 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 handle_response_fetch_consensus(), 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 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().

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