authority_cert_st.h 1.0 KB

123456789101112131415161718192021222324252627282930
  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-2017, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef AUTHORITY_CERT_ST_H
  7. #define AUTHORITY_CERT_ST_H
  8. /** Certificate for v3 directory protocol: binds long-term authority identity
  9. * keys to medium-term authority signing keys. */
  10. struct authority_cert_t {
  11. /** Information relating to caching this cert on disk and looking it up. */
  12. signed_descriptor_t cache_info;
  13. /** This authority's long-term authority identity key. */
  14. crypto_pk_t *identity_key;
  15. /** This authority's medium-term signing key. */
  16. crypto_pk_t *signing_key;
  17. /** The digest of <b>signing_key</b> */
  18. char signing_key_digest[DIGEST_LEN];
  19. /** The listed expiration time of this certificate. */
  20. time_t expires;
  21. /** This authority's IPv4 address, in host order. */
  22. uint32_t addr;
  23. /** This authority's directory port. */
  24. uint16_t dir_port;
  25. };
  26. #endif