Tor
0.4.7.0-alpha-dev
feature
nodelist
authority_cert_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 authority_cert_st.h
9
* @brief Authority certificate structure.
10
**/
11
12
#ifndef AUTHORITY_CERT_ST_H
13
#define AUTHORITY_CERT_ST_H
14
15
#include "
feature/nodelist/signed_descriptor_st.h
"
16
17
/** Certificate for v3 directory protocol: binds long-term authority identity
18
* keys to medium-term authority signing keys. */
19
struct
authority_cert_t
{
20
/** Information relating to caching this cert on disk and looking it up. */
21
signed_descriptor_t
cache_info
;
22
/** This authority's long-term authority identity key. */
23
crypto_pk_t
*
identity_key
;
24
/** This authority's medium-term signing key. */
25
crypto_pk_t
*
signing_key
;
26
/** The digest of <b>signing_key</b> */
27
char
signing_key_digest
[
DIGEST_LEN
];
28
/** The listed expiration time of this certificate. */
29
time_t
expires
;
30
/** This authority's IPv4 address. */
31
tor_addr_t
ipv4_addr
;
32
/** This authority's directory port. */
33
uint16_t
ipv4_dirport
;
34
};
35
36
#endif
/* !defined(AUTHORITY_CERT_ST_H) */
DIGEST_LEN
#define DIGEST_LEN
Definition:
digest_sizes.h:20
signed_descriptor_st.h
Descriptor/extrainfo signature structure.
authority_cert_t
Definition:
authority_cert_st.h:19
authority_cert_t::identity_key
crypto_pk_t * identity_key
Definition:
authority_cert_st.h:23
authority_cert_t::ipv4_addr
tor_addr_t ipv4_addr
Definition:
authority_cert_st.h:31
authority_cert_t::ipv4_dirport
uint16_t ipv4_dirport
Definition:
authority_cert_st.h:33
authority_cert_t::signing_key
crypto_pk_t * signing_key
Definition:
authority_cert_st.h:25
authority_cert_t::signing_key_digest
char signing_key_digest[DIGEST_LEN]
Definition:
authority_cert_st.h:27
authority_cert_t::cache_info
signed_descriptor_t cache_info
Definition:
authority_cert_st.h:21
authority_cert_t::expires
time_t expires
Definition:
authority_cert_st.h:29
crypto_pk_t
Definition:
crypto_rsa_nss.c:37
signed_descriptor_t
Definition:
signed_descriptor_st.h:18
tor_addr_t
Definition:
address.h:69
Generated by
1.9.1