Tor
0.4.7.0-alpha-dev
feature
hs
hsdir_index_st.h
Go to the documentation of this file.
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-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* @file hsdir_index_st.h
9
* @brief HS directory index structure
10
**/
11
12
#ifndef HSDIR_INDEX_ST_H
13
#define HSDIR_INDEX_ST_H
14
15
/** Hidden service directory index used in a node_t which is set once we set
16
* the consensus. */
17
struct
hsdir_index_t
{
18
/** HSDir index to use when fetching a descriptor. */
19
uint8_t
fetch
[
DIGEST256_LEN
];
20
21
/** HSDir index used by services to store their first and second
22
* descriptor. The first descriptor is chronologically older than the second
23
* one and uses older TP and SRV values. */
24
uint8_t
store_first
[
DIGEST256_LEN
];
25
/** Newer index, for second descriptor. */
26
uint8_t
store_second
[
DIGEST256_LEN
];
27
};
28
29
#endif
/* !defined(HSDIR_INDEX_ST_H) */
DIGEST256_LEN
#define DIGEST256_LEN
Definition:
digest_sizes.h:23
hsdir_index_t
Definition:
hsdir_index_st.h:17
hsdir_index_t::fetch
uint8_t fetch[DIGEST256_LEN]
Definition:
hsdir_index_st.h:19
hsdir_index_t::store_first
uint8_t store_first[DIGEST256_LEN]
Definition:
hsdir_index_st.h:24
hsdir_index_t::store_second
uint8_t store_second[DIGEST256_LEN]
Definition:
hsdir_index_st.h:26
Generated by
1.9.1