diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-13 10:08:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-13 10:08:51 -0400 |
commit | 582f2187a769ea723f6bf13bc91f7a4b3c861408 (patch) | |
tree | 91633fb239242a25e8978452e39b39a39b8dfc37 /src/or/or.h | |
parent | a73dec16c539fd957ab09f242cd44b0a0858cd38 (diff) | |
parent | 1e68c213a24237b1733cfee3726aa646a805a5a9 (diff) | |
download | tor-582f2187a769ea723f6bf13bc91f7a4b3c861408.tar.gz tor-582f2187a769ea723f6bf13bc91f7a4b3c861408.zip |
Merge remote-tracking branch 'origin/maint-0.2.3'
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 788179bacc..bb5482bf83 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4292,14 +4292,17 @@ typedef struct rend_intro_point_t { time_t time_expiring; } 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. */ - uint16_t protocols; /**< Bitmask: which rendezvous protocols are supported? - * (We allow bits '0', '1', and '2' to be set.) */ + /** Bitmask: which rendezvous protocols are supported? + * (We allow bits '0', '1', and '2' to be set.) */ + int protocols : REND_PROTOCOL_VERSION_BITMASK_WIDTH; /** List of the service's introduction points. Elements are removed if * introduction attempts fail. */ smartlist_t *intro_nodes; |