From: Roger Dingledine Date: Tue, 3 Dec 2002 07:06:13 +0000 (+0000) Subject: onions expire after a day, not an hour X-Git-Tag: tor-0.0.2pre8~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd97deb91940ea7a2eeb88e7ae1aea5cbf98c681;p=thirdparty%2Ftor.git 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. svn:r145 --- diff --git a/src/or/onion.c b/src/or/onion.c index 083e60e8c3..fe3313752a 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -510,7 +510,7 @@ unsigned char *create_onion(routerinfo_t **rarray, int rarray_len, unsigned int 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.");