[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Proposal 274 parameters (onion key rotation)
commit 4a5f4cde723cb5cecca76e15b7b39346cff8b34c
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Tue May 16 10:10:00 2017 -0700
Proposal 274 parameters (onion key rotation)
Couple more recently added parameters...
https://gitweb.torproject.org/torspec.git/commit/?id=78636a3
---
stem/descriptor/networkstatus.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index a48d838..942c524 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -161,6 +161,8 @@ DEFAULT_PARAMS = {
'usecreatefast': 1,
'max-consensuses-age-to-cache-for-diff': 72,
'try-diff-for-consensus-newer-than': 72,
+ 'onion-key-rotation-days': 28,
+ 'onion-key-grace-period-days': 7,
}
# KeyCertificate fields, tuple is of the form...
@@ -210,6 +212,8 @@ PARAM_RANGE = {
'AuthDirNumSRVAgreements': (1, MAX_PARAM),
'max-consensuses-age-to-cache-for-diff': (0, 8192),
'try-diff-for-consensus-newer-than': (0, 8192),
+ 'onion-key-rotation-days': (1, 90),
+ 'onion-key-grace-period-days': (1, 90), # max is the highest onion-key-rotation-days
}
AUTHORITY_HEADER = (
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits