]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Include v3 in documented 'protocols' in rend_service_descriptor_t
authorNick Mathewson <nickm@torproject.org>
Tue, 4 Mar 2014 17:03:18 +0000 (12:03 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 4 Mar 2014 17:03:18 +0000 (12:03 -0500)
Also make it unsigned and document that it's for INTRODUCE cell versions.

Fixes 9099; bugfix on 0.2.1.5-alpha, which introduced the v3 protocol.

changes/bug9099 [new file with mode: 0644]
src/or/or.h

diff --git a/changes/bug9099 b/changes/bug9099
new file mode 100644 (file)
index 0000000..5cd963e
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Fix a comment about the rend_server_descriptor_t.protocols field
+      to more accurately describe its range. Also, make that
+      field unsigned, to more accurately reflect its usage.
+      Fixes bug 9099; bugfix on 0.2.1.5-alpha.
index 478b47849357d73861794b88099ea808e5a658eb..e49a3b08a5315571a6022b709182d3f06f0d9e4d 100644 (file)
@@ -4838,9 +4838,9 @@ 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 rendezvous protocols are supported?
-   * (We allow bits '0', '1', and '2' to be set.) */
-  int protocols : REND_PROTOCOL_VERSION_BITMASK_WIDTH;
+  /** 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;