authority_cert_st.h 1.1 KB

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