Tor  0.4.6.0-alpha-dev
authcert_members.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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file authcert_members.h
9  *
10  * @brief List of tokens common to V3 authority certificates and V3
11  * consensuses.
12  **/
13 
14 #ifndef TOR_AUTHCERT_MEMBERS_H
15 #define TOR_AUTHCERT_MEMBERS_H
16 
17 // clang-format off
18 #define AUTHCERT_MEMBERS \
19  T1("dir-key-certificate-version", K_DIR_KEY_CERTIFICATE_VERSION, \
20  GE(1), NO_OBJ ), \
21  T1("dir-identity-key", K_DIR_IDENTITY_KEY, NO_ARGS, NEED_KEY ),\
22  T1("dir-key-published",K_DIR_KEY_PUBLISHED, CONCAT_ARGS, NO_OBJ),\
23  T1("dir-key-expires", K_DIR_KEY_EXPIRES, CONCAT_ARGS, NO_OBJ),\
24  T1("dir-signing-key", K_DIR_SIGNING_KEY, NO_ARGS, NEED_KEY ),\
25  T1("dir-key-crosscert", K_DIR_KEY_CROSSCERT, NO_ARGS, NEED_OBJ ),\
26  T1("dir-key-certification", K_DIR_KEY_CERTIFICATION,\
27  NO_ARGS, NEED_OBJ),\
28  T01("dir-address", K_DIR_ADDRESS, GE(1), NO_OBJ)
29 // clang-format on
30 
31 #endif /* !defined(TOR_AUTHCERT_MEMBERS_H) */