authority_cert_st.h (1202B)
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) */