1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 #ifndef CACHED_DIR_ST_H
8 #define CACHED_DIR_ST_H
10 /** A cached_dir_t represents a cacheable directory object, along with its
13 char *dir
; /**< Contents of this object, NUL-terminated. */
14 char *dir_compressed
; /**< Compressed contents of this object. */
15 size_t dir_len
; /**< Length of <b>dir</b> (not counting its NUL). */
16 size_t dir_compressed_len
; /**< Length of <b>dir_compressed</b>. */
17 time_t published
; /**< When was this object published. */
18 common_digests_t digests
; /**< Digests of this object (networkstatus only) */
19 /** Sha3 digest (also ns only) */
20 uint8_t digest_sha3_as_signed
[DIGEST256_LEN
];
21 int refcnt
; /**< Reference count for this cached_dir_t. */