hsdir_index_st.h 782 B

123456789101112131415161718192021222324
  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 HSDIR_INDEX_ST_H
  7. #define HSDIR_INDEX_ST_H
  8. /* Hidden service directory index used in a node_t which is set once we set
  9. * the consensus. */
  10. struct hsdir_index_t {
  11. /* HSDir index to use when fetching a descriptor. */
  12. uint8_t fetch[DIGEST256_LEN];
  13. /* HSDir index used by services to store their first and second
  14. * descriptor. The first descriptor is chronologically older than the second
  15. * one and uses older TP and SRV values. */
  16. uint8_t store_first[DIGEST256_LEN];
  17. uint8_t store_second[DIGEST256_LEN];
  18. };
  19. #endif