networkstatus_sr_info_st.h 785 B

1234567891011121314151617181920212223
  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 NETWORKSTATUS_SR_INFO_ST_H
  7. #define NETWORKSTATUS_SR_INFO_ST_H
  8. struct networkstatus_sr_info_t {
  9. /* Indicate if the dirauth partitipates in the SR protocol with its vote.
  10. * This is tied to the SR flag in the vote. */
  11. unsigned int participate:1;
  12. /* Both vote and consensus: Current and previous SRV. If list is empty,
  13. * this means none were found in either the consensus or vote. */
  14. struct sr_srv_t *previous_srv;
  15. struct sr_srv_t *current_srv;
  16. /* Vote only: List of commitments. */
  17. smartlist_t *commits;
  18. };
  19. #endif