aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
Commit message (Collapse)AuthorAge
* auth dir servers were only modifying a server's is_running fieldRoger Dingledine2006-03-18
| | | | | | | | | when they created a network status. so if nobody asked for a network status, they would never discover that any servers are is_running, so they could never build a circuit. svn:r6183
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* Just because both are obsolete does not mean we prefer the newerPeter Palfrader2006-02-14
| | | | svn:r6016
* Our connection_or_get_by_identity_digest() was slightly wrong. If bestPeter Palfrader2006-02-14
| | | | | | | | | didn't have any circuits on it, but conn had circuits, we would not make conn our new best unless it was also newer. Also, restructure the code a bit to maybe make it clearer. svn:r6012
* more log conversions.Roger Dingledine2006-02-13
| | | | | | | whee. svn:r6003
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* entry nodes are now entry guards.Roger Dingledine2006-01-10
| | | | | | | this is our last easy chance for a wholesale change. heave ho. svn:r5782
* Add reasons to DESTROY and RELAY_TRUNCATED cells.Nick Mathewson2006-01-05
| | | | svn:r5734
* helper nodes are dead. long live entry nodes.Roger Dingledine2005-12-28
| | | | | | | | (config options EntryNodes and StrictEntryNodes still not implemented.) svn:r5673
* when we connect to a helper node for the first time, closeRoger Dingledine2005-12-28
| | | | | | | | | that connection and its circuits. this lets us go back to using the old helper nodes rather than immediately using the last one in the list. svn:r5670
* clean up some commentsRoger Dingledine2005-12-24
| | | | svn:r5644
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* orconn_identity_map was another static variable that startedRoger Dingledine2005-12-14
| | | | | | | out NULL and didn't change until it needed to change. svn:r5578
* don't mark the helper node as down when we fail to connect toRoger Dingledine2005-12-11
| | | | | | | our https proxy. svn:r5566
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | 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
* Change how OR conns get removed from the identity map; fix some warnings on ↵Nick Mathewson2005-12-05
| | | | | | shutdown. svn:r5509
* remove some functions that are not used; #if0 out some files that are not ↵Nick Mathewson2005-11-30
| | | | | | likely to be used. svn:r5471
* Rename connection_get_by_identity_digest to reflect that it is OR-only. ↵Nick Mathewson2005-11-30
| | | | | | Make it use a hashtable instead of a linear search. svn:r5469
* Recover better from TCP connections to Tor servers that are broken butRoger Dingledine2005-11-19
| | | | | | | | | | | | | | | | don't tell you (it happens!); and rotate TLS connections once a week. 1) If an OR conn becomes more than a week old, make it obsolete. 2) If it's obsolete and empty, kill it. 3) When an OR makes a second connection to you, allow it. 4) If we want to send a new create cell, but the best conn we've got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask for a new conn instead. 5) When we time out on circuit building on the first hop, make that connection obsolete. svn:r5429
* On directory servers, old_routers was wasting hundreds of bytes per ↵Nick Mathewson2005-11-05
| | | | | | superseded router descriptor. Roll the signed descriptor info and identifying info into a cache_info struct, and use only that for old_routers. svn:r5349
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
* Downgrade a few INFO level logs to DEBUG again. Also add two or three newPeter Palfrader2005-10-17
| | | | | | | | logs in cases where a calling function's log was downgraded and we wouldn't get any log message otherwise. svn:r5263
* more log unclutteringRoger Dingledine2005-10-17
| | | | svn:r5254
* start the process of reducing clutter in server logsRoger Dingledine2005-10-17
| | | | svn:r5253
* Try to extract as many descriptors as possible from truncated http ↵Nick Mathewson2005-10-14
| | | | | | responses. (when DIR_PURPOSE_FETCH_ROUTERDESC) svn:r5249
* without braces, what will hold up the code?Roger Dingledine2005-10-06
| | | | svn:r5209
* Make doxygen marginally happierNick Mathewson2005-10-06
| | | | svn:r5208
* Check for named servers when looking them up by nickname;Nick Mathewson2005-10-04
| | | | | | | | | | | | | | | | | | | warn when we'recalling a non-named server by its nickname; don't warn twice about the same name. Fix a bug in routers_update_status_from_networkstatus that made nearly all clients never update routerinfo_t.is_named. Try to list MyFamily elements by key, not by nickname. Only warn about names that we generated ourself, or got from the local user. On TLS handshake, only check the other router's nickname against its expected nickname if is_named is set. svn:r5185
* Make a new AssumeReachable config option that will publish anyway.Roger Dingledine2005-08-26
| | | | | | | | Also, let authdirservers start without setting their Address field. Something is still not working though. Will fix in morning. svn:r4839
* Dirservers now do their own external reachability testing of eachRoger Dingledine2005-08-24
| | | | | | | | | | | | | Tor server, and only list them as running if they've been found to be reachable. Dirservers also log trouble servers, but only start complaining loudly after they've been up for an hour, to reduce false positives. We still need to do something about the fact that it is quite loud when there are many trouble servers. svn:r4829
* Our logic to decide if the OR we connected to was the right guyRoger Dingledine2005-08-23
| | | | | | | | | | was brittle and maybe open to a mitm for unverified routers. Now we be sure to check the digest, and if the nickname he claims is not a verified one then we don't care what nickname he claims. svn:r4823
* Initial, somewhat dodgy implementation of helper nodes. It has too many ↵Nick Mathewson2005-07-22
| | | | | | XXXXs, it logs too verbosely, and it doesnt do persistence. svn:r4633
* be consistent about printing out key digest $'s when we're getting aRoger Dingledine2005-07-19
| | | | | | | different key than we expect svn:r4609
* downgrade a warning that could plausibly happen sometimes now that weRoger Dingledine2005-07-17
| | | | | | | have controllers. svn:r4589
* Appease the hungry god of GCC: it wants functions to be static or prototyped!Nick Mathewson2005-06-21
| | | | svn:r4471
* overall cleanup and streamlining and doccingRoger Dingledine2005-06-20
| | | | | | | also fix a DoS avenue on dirservers svn:r4468
* Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson2005-06-11
| | | | | | function definition format uniform. svn:r4411
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* New whitespace normalization rule: no blank line at EOF.Nick Mathewson2005-06-09
| | | | svn:r4378
* reenable the part of the code that tries to flush as soon as an OR outbufRoger Dingledine2005-06-08
| | | | | | | | has a full tls record available. perhaps this will make OR outbufs not grow as huge except in rare cases, thus saving lots of cpu time plus memory. svn:r4343
* add HttpProxyAuthenticator config option tooRoger Dingledine2005-05-20
| | | | svn:r4272
* first iteration of scrubbing sensitive strings from logs.Roger Dingledine2005-05-03
| | | | | | | also generally clean up log messages. svn:r4174
* clean up this TOR_FRAGILE businessRoger Dingledine2005-04-26
| | | | svn:r4116
* Add basic HttpsProxyAuthenticator support, based on patchRoger Dingledine2005-04-26
| | | | | | | from Adam Langley. svn:r4115
* only call the connection open once we've decided we like the cert.Roger Dingledine2005-04-25
| | | | svn:r4112
* Fix "JAP-client" hideous ASN1 bug, twice. (Fix1: check more thoroughly for ↵Nick Mathewson2005-04-23
| | | | | | TLS errors when handling certs. Fix2: stop assert(0)ing on uncaught TLS errors.) svn:r4085
* When we connect and finish TLS negotiation with address:port, it is obvious ↵Nick Mathewson2005-04-06
| | | | | | that any other key or nickname we might know about (as an authdirserver) does not actually exist at address:port. svn:r4036
* quiet another instance where we whine to an innocent OR operator'sRoger Dingledine2005-04-06
| | | | | | | logs when some other server switches keys unexpectedly. svn:r4032