aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
Commit message (Collapse)AuthorAge
* r14727@31-33-67: nickm | 2007-11-05 18:34:35 -0500Nick Mathewson2007-11-05
| | | | | | | Make VERSIONS variable-length. svn:r12391
* r16438@catbus: nickm | 2007-11-05 16:45:45 -0500Nick Mathewson2007-11-05
| | | | | | | Initial code for variable-length cells. CERT and VERSIONS need to use them. svn:r12390
* r16435@catbus: nickm | 2007-11-05 14:23:07 -0500Nick Mathewson2007-11-05
| | | | | | | Patch from karsten: tidy up v2 hidden service directory logic, and fix a few bugs. svn:r12388
* r16432@catbus: nickm | 2007-11-05 14:18:57 -0500Nick Mathewson2007-11-05
| | | | | | | Send and parse link_auth cells properly. svn:r12386
* r16414@catbus: nickm | 2007-11-05 13:14:46 -0500Nick Mathewson2007-11-05
| | | | | | | Function to process link auth cells; stub function for cert cell processing svn:r12385
* r16411@catbus: nickm | 2007-11-05 11:27:37 -0500Nick Mathewson2007-11-05
| | | | | | | Remember X509 certificates in the context. Store peer/self certificate digests in handshake state. svn:r12382
* r16410@catbus: nickm | 2007-11-05 10:54:29 -0500Nick Mathewson2007-11-05
| | | | | | | Code to remember client_random and server_random values, and to compute hmac using TLS master secret. svn:r12381
* r16409@catbus: nickm | 2007-11-05 10:38:25 -0500Nick Mathewson2007-11-05
| | | | | | | Split handshake state into its own structure. Revise versions and netinfo code to use this structure. svn:r12380
* If bridge users set UpdateBridgesFromAuthority, but the digestRoger Dingledine2007-11-04
| | | | | | | | they ask for is a 404 from the bridge authority, they now fall back to trying the bridge directly. svn:r12368
* r14678@tombo: nickm | 2007-11-03 16:12:31 -0400Nick Mathewson2007-11-03
| | | | | | | Try to make hidden service directory lookup functions a bit more efficient: go for fewer O(n) operations, and look at the consensus rather than the routerinfo list. svn:r12361
* r14631@tombo: nickm | 2007-11-02 00:18:17 -0400Nick Mathewson2007-11-02
| | | | | | | Better log messages for "not enough to build a circuit" message. svn:r12324
* r14623@tombo: nickm | 2007-11-01 22:25:18 -0400Nick Mathewson2007-11-02
| | | | | | | More tweaks from karsten, with some cleanup and commentary. svn:r12319
* r16320@catbus: nickm | 2007-11-01 00:11:20 -0400Nick Mathewson2007-11-01
| | | | | | | Learn new addresses for authorities from their certificates. svn:r12305
* r16314@catbus: nickm | 2007-10-31 23:40:08 -0400Nick Mathewson2007-11-01
| | | | | | | Clients download and cache new hidden descriptor format. svn:r12302
* r16301@catbus: nickm | 2007-10-31 16:43:49 -0400Nick Mathewson2007-10-31
| | | | | | | A couple of small tweaks to karsten's latest patch, and note an issue with using a bitmap to represent a single int. svn:r12300
* r16300@catbus: nickm | 2007-10-31 15:36:41 -0400Nick Mathewson2007-10-31
| | | | | | | Next patch from Karsten: rename some macros, tunnel dir connections, generate (and upload) multiple descriptors as appropriate. svn:r12299
* r16285@catbus: nickm | 2007-10-30 17:43:25 -0400Nick Mathewson2007-10-30
| | | | | | | Implement (but do not enable) link connection version negotiation svn:r12286
* r16282@catbus: nickm | 2007-10-30 14:28:58 -0400Nick Mathewson2007-10-30
| | | | | | | Implement lots of proposal 105. None of it is enabled yet. svn:r12285
* r16263@catbus: nickm | 2007-10-29 15:08:17 -0400Nick Mathewson2007-10-29
| | | | | | | Tidy last patch a bit. svn:r12273
* r16262@catbus: nickm | 2007-10-29 13:21:35 -0400Nick Mathewson2007-10-29
| | | | | | | Patch from Karsten: Code to act as (and use) v2 hidden service directories. svn:r12272
* r16246@catbus: nickm | 2007-10-28 19:34:58 -0400Nick Mathewson2007-10-28
| | | | | | | Implement a FallbackNetworkstatusFile (default to $prefix/share/tor/fallback-consensus) to that we know about lots of directory servers and routers when we start up the first time. svn:r12259
* r16242@catbus: nickm | 2007-10-28 16:28:13 -0400Nick Mathewson2007-10-28
| | | | | | | Implement if-modified-since for consensus networkstatuses so that we do not download duplicates needlessly. svn:r12258
* r16237@catbus: nickm | 2007-10-28 15:45:25 -0400Nick Mathewson2007-10-28
| | | | | | | Tidy v2 hidden service descriptor format code: fix memory leaks, fix reference problems, note magic numbers, note questions, remove redundant checks, remove a possible stack smashing bug when encoding a descriptor with no protocols supported. svn:r12255
* r16236@catbus: nickm | 2007-10-28 14:36:30 -0400Nick Mathewson2007-10-28
| | | | | | | Patch from Karsten Loesing: encode and parse v2 rendezvous descriptors. svn:r12254
* r16234@catbus: nickm | 2007-10-28 14:27:22 -0400Nick Mathewson2007-10-28
| | | | | | | Clean up a couple of comments from r12244. svn:r12253
* Separate "SOCKS_COMMAND_CONNECT_DIR" into two flags inRoger Dingledine2007-10-28
| | | | | | | | | | | | edge_connection_t: want_onehop if it must attach to a circuit with only one hop (e.g. for the current tunnelled connections that use begin_dir), and use_begindir if we mean to use a BEGIN_DIR relay command to establish the stream rather than the normal BEGIN. Now we can make anonymized begin_dir connections for (e.g.) more secure hidden service posting and fetching. svn:r12244
* r16115@catbus: nickm | 2007-10-24 21:52:33 -0400Nick Mathewson2007-10-25
| | | | | | | Tolerate a slightly dead consensus when deciding whether to download descriptors and build circuits. svn:r12167
* r16111@catbus: nickm | 2007-10-24 15:03:57 -0400Nick Mathewson2007-10-24
| | | | | | | Allow multiple download schedules to exist. At the moment, we use one for consensus, and the other one for everything else. svn:r12158
* r16108@catbus: nickm | 2007-10-24 14:41:12 -0400Nick Mathewson2007-10-24
| | | | | | | Refactor the arguments for router_pick_{directory_|trusteddir}server[_impl] so that they all take the same flags, and so that their flags have names. Fix their documentation too. svn:r12157
* Authorities no longer send back "400 you're unreachable please fixRoger Dingledine2007-10-24
| | | | | | | | it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
* When there's no concensus, we were forming a vote every 30Roger Dingledine2007-10-23
| | | | | | | | | | | | | | | | | | | | | | | | minutes, but writing the "valid-after" line in our vote based on our configured V3AuthVotingInterval: so unless the intervals matched up, we immediately rejected our own vote because it didn't start at the voting interval that caused us to construct a vote. This caused log entries like: Oct 23 01:16:16.303 [notice] Choosing expected valid-after time as 2007-10-23 05:30:00: consensus_set=0, interval=1800 ... Oct 23 01:20:01.203 [notice] Choosing valid-after time in vote as 2007-10-23 06:00:00: consensus_set=0, interval=3600 Oct 23 01:20:01.290 [warn] Rejecting vote with valid-after time of 2007-10-23 06:00:00; we were expecting 2007-10-23 05:30:00 Oct 23 01:20:01.291 [warn] Couldn't store my own vote! (I told myself, 'Bad valid-after time'.) Nick, you should look at this, as it's your design. :) svn:r12129
* r16042@catbus: nickm | 2007-10-22 13:30:49 -0400Nick Mathewson2007-10-22
| | | | | | | Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality. svn:r12107
* r16041@catbus: nickm | 2007-10-22 13:02:14 -0400Nick Mathewson2007-10-22
| | | | | | | Reattempt certificate downloads immediately on failure, as appropriate. svn:r12106
* r16032@catbus: nickm | 2007-10-22 11:56:53 -0400Nick Mathewson2007-10-22
| | | | | | | When our directory status or our v3 authority status changes, reschedule operations as appropriate. (Fixes some xxxx020 items) svn:r12102
* r15995@catbus: nickm | 2007-10-21 00:40:46 -0400Nick Mathewson2007-10-21
| | | | | | | More fixes for bad behavior when downloading extrainfos: do not download an ei if we lack the key to verify it, and do not download it if we already got it and found (weirdly) that it didn't match the corresponding server descriptor. svn:r12071
* r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson2007-10-21
| | | | | | | Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
* r15965@catbus: nickm | 2007-10-19 13:32:11 -0400Nick Mathewson2007-10-19
| | | | | | | Client-side implementation for proposal 122. svn:r12051
* r15964@catbus: nickm | 2007-10-19 12:43:49 -0400Nick Mathewson2007-10-19
| | | | | | | Sort out that need_to_mirror is for routerstatuses in v2 networkstatuses only. svn:r12050
* r15961@catbus: nickm | 2007-10-19 12:40:15 -0400Nick Mathewson2007-10-19
| | | | | | | Learn the difference between "mismatched vote digest" and "mismatched vote times": the latter is more informative. svn:r12049
* r15956@catbus: nickm | 2007-10-19 11:18:14 -0400Nick Mathewson2007-10-19
| | | | | | | Encode address in certificates. Also, make it possible to create certs reusing an old key. svn:r12046
* r15939@catbus: nickm | 2007-10-18 22:14:15 -0400Nick Mathewson2007-10-19
| | | | | | | | | | | | Remember the valid-until time of the most recent consensus that listed a router, and (if we are a cache) never delete the routerdesc until that conensus is expired. This is way easier than retaining multiple consensuses. (Of course, the info isn't retained across restarts, but that only affects a few caches at a time.) svn:r12041
* r15915@catbus: nickm | 2007-10-18 10:26:44 -0400Nick Mathewson2007-10-18
| | | | | | | Stop incessant notices about when we think the expected valid-after time should be, if we are not an authority. svn:r12022
* r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson2007-10-17
| | | | | | | Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff". svn:r12000
* r15806@catbus: nickm | 2007-10-15 19:14:57 -0400Nick Mathewson2007-10-15
| | | | | | | Implement v3 networkstatus client code. Remove v2 networkstatus client code, except as needed for caches to fetch and serve v2 networkstatues and the routers they list. svn:r11957
* r15750@catbus: nickm | 2007-10-13 20:06:47 -0400Nick Mathewson2007-10-14
| | | | | | | Eventually delete the obsolete cached-routers and cached-routers.new files, so they don't sit around on disk forever. svn:r11918
* r15732@catbus: nickm | 2007-10-12 17:28:24 -0400Nick Mathewson2007-10-12
| | | | | | | Start roughing out the functions that we'll use to replace the old ugly v2 networkstatus manipulation code". svn:r11904
* Controllers should now specify cache=no or cache=yes when usingRoger Dingledine2007-10-12
| | | | | | | the +POSTDESCRIPTOR command. svn:r11892
* minor cleanupsRoger Dingledine2007-10-11
| | | | svn:r11890
* r15703@catbus: nickm | 2007-10-11 17:30:34 -0400Nick Mathewson2007-10-11
| | | | | | | Fix for the reported case of bug 438: check families as well as identities in circuit_find_to_cannibalize(). Code audit still pending. ;) svn:r11886
* r15689@catbus: nickm | 2007-10-11 16:40:25 -0400Nick Mathewson2007-10-11
| | | | | | | Fix bug 451. This was a nasty bug, so let's fix it twice: first, by banning recursive calls to connection_handle_write from connection_flushed_some; and second, by not calling connection_finished_flushing() on a closed connection. Backport candidate. svn:r11882