tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit b28751477cad304c7fd1de1dd84a0fb537396bad
parent d8ca300d5aa0e5727366f626fc692e34957ba4dc
Author: David Goulet <dgoulet@torproject.org>
Date:   Wed, 11 Jun 2025 13:00:48 +0000

Merge branch 'hsdir-interval' into 'main'

hs-common: Reduce HS_TIMER_PERIOD_LENGTH_MIN from 30 to 5

See merge request tpo/core/tor!909
Diffstat:
Achanges/hsdir-interval | 2++
Msrc/feature/hs/hs_common.h | 9+--------
2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/changes/hsdir-interval b/changes/hsdir-interval @@ -0,0 +1,2 @@ + o Minor features (hidden services): + - Reduce the minimum value of hsdir_interval to match recent tor-spec change. diff --git a/src/feature/hs/hs_common.h b/src/feature/hs/hs_common.h @@ -49,13 +49,6 @@ struct ed25519_keypair_t; /** String prefix for the signature of ESTABLISH_INTRO */ #define ESTABLISH_INTRO_SIG_PREFIX "Tor establish-intro cell v1" -/** The default HS time period length */ -#define HS_TIME_PERIOD_LENGTH_DEFAULT 1440 /* 1440 minutes == one day */ -/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */ -#define HS_TIME_PERIOD_LENGTH_MIN 30 /* minutes */ -/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */ -#define HS_TIME_PERIOD_LENGTH_MAX (60 * 24 * 10) /* 10 days or 14400 minutes */ - /** Prefix of the onion address checksum. */ #define HS_SERVICE_ADDR_CHECKSUM_PREFIX ".onion checksum" /** Length of the checksum prefix minus the NUL terminated byte. */ @@ -83,7 +76,7 @@ struct ed25519_keypair_t; /** The default HS time period length */ #define HS_TIME_PERIOD_LENGTH_DEFAULT 1440 /* 1440 minutes == one day */ /** The minimum time period length as seen in prop224 section [TIME-PERIODS] */ -#define HS_TIME_PERIOD_LENGTH_MIN 30 /* minutes */ +#define HS_TIME_PERIOD_LENGTH_MIN 5 /* minutes */ /** The minimum time period length as seen in prop224 section [TIME-PERIODS] */ #define HS_TIME_PERIOD_LENGTH_MAX (60 * 24 * 10) /* 10 days or 14400 minutes */ /** The time period rotation offset as seen in prop224 section