aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2013-03-09 16:42:35 -0500
committerRoger Dingledine <arma@torproject.org>2013-03-10 23:38:18 -0400
commit599aeef9bc9e707ec7146da79b2018bf2f2924b3 (patch)
tree423e03ae6c7e8cafb03da8f69f91e6f6ba72d20f /src/or/or.h
parente270a066a6262784be317f003f6102430db24880 (diff)
downloadtor-599aeef9bc9e707ec7146da79b2018bf2f2924b3.tar
tor-599aeef9bc9e707ec7146da79b2018bf2f2924b3.tar.gz
parameterize SSLKeyLifetime
no actual changes in behavior yet
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index c2cd8a6ca..a71468c1c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -177,8 +177,6 @@
#define MIN_ONION_KEY_LIFETIME (7*24*60*60)
/** How often do we rotate TLS contexts? */
#define MAX_SSL_KEY_LIFETIME_INTERNAL (2*60*60)
-/** What expiry time shall we place on our SSL certs? */
-#define MAX_SSL_KEY_LIFETIME_ADVERTISED (365*24*60*60)
/** How old do we allow a router to get before removing it
* from the router list? In seconds. */
@@ -4010,6 +4008,9 @@ typedef struct {
*/
int DisableV2DirectoryInfo_;
+ /** What expiry time shall we place on our SSL certs? */
+ int SSLKeyLifetime;
+
} or_options_t;
/** Persistent state for an onion router, as saved to disk. */