tor  0.4.2.0-alpha-dev
hsdir_index_st.h
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 */
6 
7 #ifndef HSDIR_INDEX_ST_H
8 #define HSDIR_INDEX_ST_H
9 
10 /* Hidden service directory index used in a node_t which is set once we set
11  * the consensus. */
12 struct hsdir_index_t {
13  /* HSDir index to use when fetching a descriptor. */
14  uint8_t fetch[DIGEST256_LEN];
15 
16  /* HSDir index used by services to store their first and second
17  * descriptor. The first descriptor is chronologically older than the second
18  * one and uses older TP and SRV values. */
19  uint8_t store_first[DIGEST256_LEN];
20  uint8_t store_second[DIGEST256_LEN];
21 };
22 
23 #endif /* !defined(HSDIR_INDEX_ST_H) */
24 
#define DIGEST256_LEN
Definition: digest_sizes.h:23