Tor
0.4.7.0-alpha-dev
feature
nodelist
networkstatus_sr_info_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 networkstatus_sr_info_st.h
9
* @brief Shared-randomness structure.
10
**/
11
12
#ifndef NETWORKSTATUS_SR_INFO_ST_H
13
#define NETWORKSTATUS_SR_INFO_ST_H
14
15
struct
networkstatus_sr_info_t
{
16
/* Indicate if the dirauth partitipates in the SR protocol with its vote.
17
* This is tied to the SR flag in the vote. */
18
unsigned
int
participate:1;
19
/* Both vote and consensus: Current and previous SRV. If list is empty,
20
* this means none were found in either the consensus or vote. */
21
struct
sr_srv_t
*previous_srv;
22
struct
sr_srv_t
*current_srv;
23
/* Vote only: List of commitments. */
24
smartlist_t
*commits;
25
};
26
27
#endif
/* !defined(NETWORKSTATUS_SR_INFO_ST_H) */
networkstatus_sr_info_t
Definition:
networkstatus_sr_info_st.h:15
smartlist_t
Definition:
smartlist_core.h:26
sr_srv_t
Definition:
shared_random.h:62
Generated by
1.9.1