[or-cvs] onions expire after a day, not an hour

Roger Dingledine arma at seul.org
Tue Dec 3 07:06:15 UTC 2002


Update of /home/or/cvsroot/src/or
In directory moria.seul.org:/home/arma/work/onion/cvs/src/or

Modified Files:
	onion.c 
Log Message:
onions expire after a day, not an hour

this was a major faq, because it would fail with an error only on
the *server* side when the client-side time was wrong. the client would
simply not work.


Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- onion.c	28 Nov 2002 07:32:30 -0000	1.22
+++ onion.c	3 Dec 2002 07:06:13 -0000	1.23
@@ -510,7 +510,7 @@
     else
       layer->addr = 0;
     /* Expiration Time */
-    layer->expire = time(NULL) + 3600; /* NOW + 1 hour */
+    layer->expire = time(NULL) + 86400; /* NOW + 1 day */
     /* Key Seed Material */
     if(crypto_rand(16, layer->keyseed)) { /* error */
       log(LOG_ERR,"Error generating random data.");



More information about the tor-commits mailing list