]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'maint-0.3.5' into maint-0.4.5
authorDavid Goulet <dgoulet@torproject.org>
Tue, 18 Jan 2022 18:12:13 +0000 (13:12 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 18 Jan 2022 18:12:13 +0000 (13:12 -0500)
1  2 
src/core/or/protover.c
src/test/test_protover.c

index cb9a03d6ecd9ec3e03dffe3a2245dca1c75400ea,e047bfe200f103d9851f55a7971fe4f69bc2a320..d45246cb8344938a87029bb46f78a984f8540e53
@@@ -435,10 -422,9 +435,10 @@@ protover_get_supported_protocols(void
    return
      "Cons=1-2 "
      "Desc=1-2 "
 -    "DirCache=1-2 "
 +    "DirCache=2 "
 +    "FlowCtrl=1 "
-     "HSDir=1-2 "
-     "HSIntro=3-5 "
+     "HSDir=2 "
 -    "HSIntro=4 "
++    "HSIntro=4-5 "
      "HSRend=1-2 "
      "Link=1-5 "
  #ifdef HAVE_WORKING_TOR_TLS_GET_TLSSECRETS
index 016cee7f150b107489666e1ce422def6ce715df3,3fbfe3a68214b266b179b8392eb4fd2d0585fa98..44febe0fa65b750e6d5f9322bd11139dcde7005a
@@@ -342,21 -361,23 +342,21 @@@ test_protover_supports_version(void *ar
   * Hard-coded here, because they are not in the code, or not exposed in the
   * headers. */
  #define PROTOVER_LINKAUTH_V1 1
 -#define PROTOVER_LINKAUTH_V3 3
 -
 +#define PROTOVER_LINKAUTH_V2 2
  #define PROTOVER_RELAY_V1 1
 -#define PROTOVER_RELAY_V2 2
  
 +/* Deprecated HSIntro versions */
 +#define PROTOVER_HS_INTRO_DEPRECATED_1 1
 +#define PROTOVER_HS_INTRO_DEPRECATED_2 2
  /* Highest supported HSv2 introduce protocol version.
 - * Hard-coded here, because it does not appear anywhere in the code.
   * It's not clear if we actually support version 2, see #25068. */
 -#define PROTOVER_HSINTRO_V2 4
 +#define PROTOVER_HS_INTRO_V2 3
  
 -/* HSv2 Rend and HSDir protocol versions.
 - * Hard-coded here, because they do not appear anywhere in the code. */
 +/* HSv2 Rend and HSDir protocol versions. */
  #define PROTOVER_HS_RENDEZVOUS_POINT_V2 1
- #define PROTOVER_HSDIR_V2 1
+ #define PROTOVER_HSDIR_V2 2
  
 -/* DirCache, Desc, Microdesc, and Cons protocol versions.
 - * Hard-coded here, because they do not appear anywhere in the code. */
 +/* DirCache, Desc, Microdesc, and Cons protocol versions. */
  #define PROTOVER_DIRCACHE_V1 1
  #define PROTOVER_DIRCACHE_V2 2