extend_info_st.h 1.1 KB

12345678910111213141516171819202122232425262728
  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 EXTEND_INFO_ST_H
  7. #define EXTEND_INFO_ST_H
  8. /** Information on router used when extending a circuit. We don't need a
  9. * full routerinfo_t to extend: we only need addr:port:keyid to build an OR
  10. * connection, and onion_key to create the onionskin. Note that for onehop
  11. * general-purpose tunnels, the onion_key is NULL. */
  12. struct extend_info_t {
  13. char nickname[MAX_HEX_NICKNAME_LEN+1]; /**< This router's nickname for
  14. * display. */
  15. /** Hash of this router's RSA identity key. */
  16. char identity_digest[DIGEST_LEN];
  17. /** Ed25519 identity for this router, if any. */
  18. ed25519_public_key_t ed_identity;
  19. uint16_t port; /**< OR port. */
  20. tor_addr_t addr; /**< IP address. */
  21. crypto_pk_t *onion_key; /**< Current onionskin key. */
  22. curve25519_public_key_t curve25519_onion_key;
  23. };
  24. #endif