[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[or-cvs] onions expire after a day, not an hour
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.");