diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-07-24 13:31:17 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:34 -0400 |
commit | cf58451a8ba03e869a805f973ef5b5f3f6d82b6b (patch) | |
tree | 3bf63e6ed1baf97b333e42aaa71a42e12e0cc8c3 /src/or/hs_common.h | |
parent | 2cd5f9a2fc2765539899b6e84ed4b1c9e02febad (diff) | |
download | tor-cf58451a8ba03e869a805f973ef5b5f3f6d82b6b.tar.gz tor-cf58451a8ba03e869a805f973ef5b5f3f6d82b6b.zip |
prop224: Refactor hs_get_time_period_num() to not use absolute time.
Instead use the SRV protocol duration to calculate the rotation offset
that was previously hardcoded to 12 hours.
Diffstat (limited to 'src/or/hs_common.h')
-rw-r--r-- | src/or/hs_common.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h index 519485d576..268a69bb52 100644 --- a/src/or/hs_common.h +++ b/src/or/hs_common.h @@ -52,8 +52,6 @@ #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 */ -/* The time period rotation offset as seen in prop224 section [TIME-PERIODS] */ -#define HS_TIME_PERIOD_ROTATION_OFFSET (12 * 60) /* minutes */ /* Prefix of the onion address checksum. */ #define HS_SERVICE_ADDR_CHECKSUM_PREFIX ".onion checksum" |