Tor
0.4.7.0-alpha-dev
feature
nodelist
networkstatus_voter_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_voter_info_st.h
9
* @brief Single consensus voter structure.
10
**/
11
12
#ifndef NETWORKSTATUS_VOTER_INFO_ST_H
13
#define NETWORKSTATUS_VOTER_INFO_ST_H
14
15
/** Information about a single voter in a vote or a consensus. */
16
struct
networkstatus_voter_info_t
{
17
/** Declared SHA-1 digest of this voter's identity key */
18
char
identity_digest
[
DIGEST_LEN
];
19
char
*
nickname
;
/**< Nickname of this voter */
20
/** Digest of this voter's "legacy" identity key, if any. In vote only; for
21
* consensuses, we treat legacy keys as additional signers. */
22
char
legacy_id_digest
[
DIGEST_LEN
];
23
char
*
address
;
/**< Address of this voter, in string format. */
24
tor_addr_t
ipv4_addr;
25
uint16_t
ipv4_dirport
;
/**< Directory port of this voter */
26
uint16_t
ipv4_orport
;
/**< OR port of this voter */
27
char
*
contact
;
/**< Contact information for this voter. */
28
char
vote_digest
[
DIGEST_LEN
];
/**< Digest of this voter's vote, as signed. */
29
30
/* Nothing from here on is signed. */
31
/** The signature of the document and the signature's status. */
32
smartlist_t
*
sigs
;
33
};
34
35
#endif
/* !defined(NETWORKSTATUS_VOTER_INFO_ST_H) */
DIGEST_LEN
#define DIGEST_LEN
Definition:
digest_sizes.h:20
networkstatus_voter_info_t
Definition:
networkstatus_voter_info_st.h:16
networkstatus_voter_info_t::legacy_id_digest
char legacy_id_digest[DIGEST_LEN]
Definition:
networkstatus_voter_info_st.h:22
networkstatus_voter_info_t::sigs
smartlist_t * sigs
Definition:
networkstatus_voter_info_st.h:32
networkstatus_voter_info_t::identity_digest
char identity_digest[DIGEST_LEN]
Definition:
networkstatus_voter_info_st.h:18
networkstatus_voter_info_t::vote_digest
char vote_digest[DIGEST_LEN]
Definition:
networkstatus_voter_info_st.h:28
networkstatus_voter_info_t::address
char * address
Definition:
networkstatus_voter_info_st.h:23
networkstatus_voter_info_t::ipv4_dirport
uint16_t ipv4_dirport
Definition:
networkstatus_voter_info_st.h:25
networkstatus_voter_info_t::nickname
char * nickname
Definition:
networkstatus_voter_info_st.h:19
networkstatus_voter_info_t::ipv4_orport
uint16_t ipv4_orport
Definition:
networkstatus_voter_info_st.h:26
networkstatus_voter_info_t::contact
char * contact
Definition:
networkstatus_voter_info_st.h:27
smartlist_t
Definition:
smartlist_core.h:26
tor_addr_t
Definition:
address.h:69
Generated by
1.9.1