aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index a4ba39f598..0b66bc7a3c 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -231,7 +231,11 @@ rend_get_service_id(crypto_pk_env_t *pk, char *out)
/* ==== Rendezvous service descriptor cache. */
+/** How old do we let hidden service descriptors get discarding them as too
+ * old? */
#define REND_CACHE_MAX_AGE (48*60*60)
+/** How wrong to we assume our clock may be when checking whether hidden
+ * services are too old or too new? */
#define REND_CACHE_MAX_SKEW (24*60*60)
/** Map from service id (as generated by rend_get_service_id) to