diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-15 12:18:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-15 12:18:17 -0400 |
commit | 22e9c647387509b44ff75e232aede360e3f87070 (patch) | |
tree | b21a2c640d50991704318a76e72cf47bbb5d1775 /src/or/or.h | |
parent | 7d2d131afad17375a7e04086082568903d5335d2 (diff) | |
download | tor-22e9c647387509b44ff75e232aede360e3f87070.tar.gz tor-22e9c647387509b44ff75e232aede360e3f87070.zip |
Extract rend_service_descriptor_t into its own header.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/or/or.h b/src/or/or.h index b67896d2a5..e66bad5ab3 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4145,28 +4145,7 @@ typedef struct rend_intro_point_t { unsigned int circuit_established:1; } rend_intro_point_t; -#define REND_PROTOCOL_VERSION_BITMASK_WIDTH 16 - -/** Information used to connect to a hidden service. Used on both the - * service side and the client side. */ -typedef struct rend_service_descriptor_t { - crypto_pk_t *pk; /**< This service's public key. */ - int version; /**< Version of the descriptor format: 0 or 2. */ - time_t timestamp; /**< Time when the descriptor was generated. */ - /** Bitmask: which introduce/rendezvous protocols are supported? - * (We allow bits '0', '1', '2' and '3' to be set.) */ - unsigned protocols : REND_PROTOCOL_VERSION_BITMASK_WIDTH; - /** List of the service's introduction points. Elements are removed if - * introduction attempts fail. */ - smartlist_t *intro_nodes; - /** Has descriptor been uploaded to all hidden service directories? */ - int all_uploads_performed; - /** List of hidden service directories to which an upload request for - * this descriptor could be sent. Smartlist exists only when at least one - * of the previous upload requests failed (otherwise it's not important - * to know which uploads succeeded and which not). */ - smartlist_t *successful_uploads; -} rend_service_descriptor_t; +typedef struct rend_service_descriptor_t rend_service_descriptor_t; /********************************* routerlist.c ***************************/ |