summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
AgeCommit message (Collapse)Author
2006-10-31 r9449@Kushana: nickm | 2006-10-31 00:12:02 -0500Nick Mathewson
Dump breakdown of PK operations when we get a USR2 signal. This should help us figure out of we are doing some of them for stupid reasons. svn:r8881
2006-10-09 r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson
The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
2006-07-23Don't tell anybody, but we're going OO here. This patch splitsNick Mathewson
circuit_t into origin_circuit_t and or_circuit_t. I fixed some segaults; there may be more. We still need to move more rendezvous stuff into subtypes. This is a trial run for splitting up connection_t; if the approach is insane, please say so soon so we can do something smarter. Also, this discards the old HALF_OPEN code, which nobody seems to want. svn:r6817
2006-06-06fix typoRoger Dingledine
svn:r6549
2006-03-14change INET_NTOA_BUF_LEN+1 to INET_NTOA_BUF_LENPeter Palfrader
add a comment in a few places where we add weird numbers to buffer lengths svn:r6161
2006-03-12More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson
svn:r6143
2006-03-12Cleanup on time-relaqted constants. New conventions:Nick Mathewson
1) Surround all constants by (parens), whether we'll be using them in a denominator or not. 2) Express all time periods as products (24*60*60), not as multiplied-out constants (86400). 3) Comments like "(60*60) /* one hour */" are as pointless as comments like "c = a + b; /* set c to the sum of a and b */". Remove them. 4) All time periods should be #defined constants, not given inline. 5) All time periods should have doxygen comments. 6) All time periods, unless specified, are in seconds. It's not necessary to say so. To summarize, the old (lack of) style would allow: #define FOO_RETRY_INTERVAL 60*60 /* one hour (seconds) */ next_try = now + 3600; The new style is: /** How often do we reattempt foo? */ #define FOO_RETRY_INTERVAL (60*60) next_try = now + RETRY_INTERVAL; svn:r6142
2006-02-21be quieter about hidserv descriptors that are too old or too new.Roger Dingledine
we can't do anything about them anyway. svn:r6073
2006-02-13the last of the log convention conversion. finally.Roger Dingledine
svn:r6005
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-14Fix a potential memory stomp on servers running hidden services. Found by ↵Nick Mathewson
weasel with valgrind. Backport candidate. svn:r5579
2005-12-10when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine
we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
2005-10-25Remove last vestiges of old logging interface.Nick Mathewson
svn:r5317
2005-10-24Use LD_BUG as appropriate; convert rend* and router* to new logging ↵Nick Mathewson
interface; use new circ_log_path interface svn:r5302
2005-10-18Update more files to new log stuff.Nick Mathewson
svn:r5286
2005-10-17Make a few INFO log lines into DEBUGPeter Palfrader
svn:r5257
2005-09-30Reformat inconsistent function declarations.Nick Mathewson
svn:r5160
2005-09-09a few more hints on a rare but mysterious warningRoger Dingledine
svn:r4966
2005-09-09clean up the rendezvous warn log msgs, and downgrade some to infoRoger Dingledine
svn:r4964
2005-07-22we were mangling memory because we weren't allocing enoughRoger Dingledine
for the hidserv desc nick can you check that this is enough now? svn:r4628
2005-07-22let hidden service descriptors publish 0 intro pointsRoger Dingledine
nick, please check the logic here svn:r4627
2005-06-29Logic to implement rendezvous/introduction via unknown servers.Nick Mathewson
- Add a new extend_info_t datatype to hold information needed to extend a circuit (addr,port,keyid,onion_key). Use it in cpath and build_state. Make appropriate functions take or return it instead of routerinfo_t or keyid. - #if 0 needless check in circuit_get_by_edge_conn; if nobody triggers this error in 0.1.0.10, nobody will trigger it. - Implement new hidden service descriptor format, which contains "extend info" for introduction points, along with protocol version list. - Parse new format. - Generate new format - Cache old and new formats alongside each other. - Directories serve "old" format if asked in old way, "newest available" format if asked in new way. - Use new format to find introduction points if possible; otherwise fall back. Keep nickname lists and extendinfo lists in sync. - Tests for new format. - Implement new "v2" INTRODUCE cell format. - Accept new format - Use new format if we have a versioned service descriptor that says the server accepts the new format. - Add documentation for functions and data types. svn:r4506
2005-06-11Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson
function definition format uniform. svn:r4411
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-06-09New whitespace normalization rule: no blank line at EOF.Nick Mathewson
svn:r4378
2005-05-03first iteration of scrubbing sensitive strings from logs.Roger Dingledine
also generally clean up log messages. svn:r4174
2005-04-03Adjust maximum skew and age for rendezvous descriptors: adjust code to make ↵Nick Mathewson
skew add to age. svn:r3995
2005-02-28Clean up rend cache on shutdownNick Mathewson
svn:r3714
2005-01-19Handle unavailable hidden services better. We try each intro pointRoger Dingledine
until none are left, then we try to refetch the descriptor. If it's the same one we had before, then close streams right then. Whenever a new stream arrives, even if it's right after, optimistically try refetching the descriptor, just in case. svn:r3379
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-09Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson
target; fix a braino in dirserv.c svn:r2758
2004-11-07Clean up copyrights.Roger Dingledine
Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
2004-11-02canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine
svn:r2644
2004-10-27Use strlcpy, not strcpy.Nick Mathewson
svn:r2610
2004-10-14Build without warnings on mac gcc 3.3Nick Mathewson
svn:r2487
2004-10-14more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine
plus a whitespace patch on config.c from vicman svn:r2482
2004-07-22now base16_encode() and base32_encode() can't ever failRoger Dingledine
svn:r2103
2004-05-18Resolve some XXXsNick Mathewson
svn:r1889
2004-05-12Make some functions staticNick Mathewson
svn:r1857
2004-05-10More doxygenation.Nick Mathewson
svn:r1832
2004-05-09more doxygen markupRoger Dingledine
plenty more remains svn:r1824
2004-05-05Comments for nearly all non-tricky filesNick Mathewson
svn:r1796
2004-04-25use tor_assertRoger Dingledine
remove obsolete BUF_OK macro svn:r1697
2004-04-12ACK/NAK INTRODUCE1 requests. (We do no useful processing on them yet)Nick Mathewson
svn:r1597
2004-04-12bump allowed rend desc skew from 60 mins to 90 minsRoger Dingledine
svn:r1593
2004-04-08when rend_cache_store warns, give more detailRoger Dingledine
svn:r1572
2004-04-08stop being so eager to have rend_cache_store reject theRoger Dingledine
service descriptor svn:r1566