aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
...
* | | | Remove a spurious .z from microdesc fetch URLs so they no logner end with .z.zNick Mathewson2010-10-07
|/ / /
* | | Whitespace fixes on recent merges to master.Nick Mathewson2010-09-30
| | |
* | | Clean long-unlisted microdescs from the cacheNick Mathewson2010-09-27
| | |
* | | Download microdescriptors if you're a cacheNick Mathewson2010-09-27
| | | | | | | | | | | | | | | This commit adds some functions to see what microdescriptors we're missing, and adds fetch-microdesc/store-microdesc logic to the directory code.
* | | Code to download, parse, and store microdesc consensusesNick Mathewson2010-09-27
| | |
* | | Add support for linked connections with bufferevent_pair.Nick Mathewson2010-09-27
| | | | | | | | | | | | | | | | | | Also, set directory connections (linked and otherwise) to use bufferevents. Also, stop using outbuf_flushlen anywhere except for OR connections.
* | | Fix more remaining users of inbuf/outbuf to handle bufferevents instead.Nick Mathewson2010-09-27
| | |
* | | Move the "stop writing when the buffer is empty" logic to ↵Nick Mathewson2010-09-27
| | | | | | | | | | | | cnnection_finished_flushing
* | | Refactor users of buf_datalen to bufferevent-friendly version.Nick Mathewson2010-09-27
|/ /
* | Rename has_completed_circuit to can_complete_circuitNick Mathewson2010-09-22
| | | | | | | | Also redocument it. Related to #1362.
* | Merge remote branch 'public/pretty-signature-log'Nick Mathewson2010-09-13
|\ \
| * | Complicate the rules on WARN vs INFO in consensus verificationNick Mathewson2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | It's normal when bootstrapping to have a lot of different certs missing, so we don't want missing certs to make us warn... unless the certs we're missing are ones that we've tried to fetch a couple of times and failed at. May fix bug 1145.
* | | Merge branch 'bug1138'Nick Mathewson2010-09-12
|\ \ \
| * | | Clean up a couple more bug1138 issues mentioned by roger on code reviewNick Mathewson2010-09-12
| | | |
| * | | Handle null conn->requested_resource rather than assertRobert Hogan2010-09-12
| | | | | | | | | | | | | | | | Per arma's comments in bug1138
| * | | Nick points out:Robert Hogan2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | tor_assert(!conn->_base.purpose == DIR_PURPOSE_FETCH_EXTRAINFO) != tor_assert(conn->_base.purpose != DIR_PURPOSE_FETCH_EXTRAINFO) !!
| * | | Amend per Sebastian's comments:Robert Hogan2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move checks for extra_info to callers - Change argument name from failed to descs - Use strlen("fp/") instead of a magic number - I passed on the suggestion to rename functions from *_failed() to *_handle_failure(). There are a lot of these so for now just follow the house style.
| * | | Fall back to direct descriptor request to bridges whenRobert Hogan2010-08-16
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests to authorities fail due to a network error. Bug#1138 "When a Tor client starts up using a bridge, and UpdateBridgesFromAuthority is set, Tor will go to the authority first and look up the bridge by fingerprint. If the bridge authority is filtered, Tor will never notice that the bridge authority lookup failed. So it will never fall back." Add connection_dir_bridge_routerdesc_failed(), a function for unpacking the bridge information from a failed request, and ensure connection_dir_request_failed() calls it if the failed request was for a bridge descriptor. Test: 1. for ip in `grep -iR 'router ' cached-descriptors|cut -d ' ' -f 3`; do sudo iptables -A OUTPUT -p tcp -d $ip -j DROP; done 2. remove all files from user tor directory 3. Put the following in torrc: UseBridges 1 UpdateBridgesFromAuthority 1 Bridge 85.108.88.19:443 7E1B28DB47C175392A0E8E4A287C7CB8686575B7 4. Launch tor - it should fall back to downloading descriptors directly from the bridge. Initial patch reviewed and corrected by mingw-san.
* / / fix regression introduced by 1a65bdd2Roger Dingledine2010-09-12
|/ / | | | | | | noticed while reviewing hoganrobert/bug1138
* | Create routerparse.hSebastian Hahn2010-07-27
| |
* | Create rephist.hSebastian Hahn2010-07-27
| |
* | Create policies.hSebastian Hahn2010-07-27
| |
* | Create networkstatus.hSebastian Hahn2010-07-27
| |
* | Create main.hSebastian Hahn2010-07-27
| |
* | Create dirvote.hSebastian Hahn2010-07-27
| |
* | Create dirserv.hSebastian Hahn2010-07-27
| |
* | Create directory.hSebastian Hahn2010-07-27
| |
* | Create control.hSebastian Hahn2010-07-27
| |
* | Create connection_edge.hSebastian Hahn2010-07-27
| |
* | Create connection.hSebastian Hahn2010-07-27
| |
* | Create config.hSebastian Hahn2010-07-27
| |
* | Create circuitbuild.hSebastian Hahn2010-07-27
| |
* | Create buffers.hSebastian Hahn2010-07-27
| |
* | Create rendclient.hSebastian Hahn2010-07-27
| |
* | Create rendcommon.hSebastian Hahn2010-07-27
| |
* | Create routerlist.hSebastian Hahn2010-07-27
| |
* | Create router.hSebastian Hahn2010-07-27
| |
* | Create geoip.hSebastian Hahn2010-07-27
| |
* | Merge branch 'maint-0.2.1'Roger Dingledine2010-04-03
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.in contrib/tor-mingw.nsi.in src/win32/orconfig.h
| * fetch relay descriptors from v3 authoritiesRoger Dingledine2010-04-03
| |
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\| | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
| |
* | Be quieter about failing to decode authority digestsSebastian Hahn2010-01-25
| | | | | | | | | | | | | | This was freaking out some relay operators without good reason, as it is nothing the relay operator can do anything about anyways. Quieting this warning suggested by rieo.
* | Merge branch 'maint-0.2.1' into masterRoger Dingledine2010-01-19
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.in contrib/tor-mingw.nsi.in src/win32/orconfig.h
| * stop bridge authorities from leaking their bridge listRoger Dingledine2010-01-17
| |
* | trivial cleanupsRoger Dingledine2010-01-15
| |
* | Make EntryNodes config option much more aggressive.Roger Dingledine2009-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before it would prepend your requested entrynodes to your list of guard nodes, but feel free to use others after that. Now it chooses only from your EntryNodes if any of those are available, and only falls back to others if a) they're all down and b) StrictNodes is not set. Also, now we refresh your entry guards from EntryNode at each consensus fetch (rather than just at startup and then they slowly rot as the network changes). The goal here is to make users less likely to set StrictNodes, since it's doing closer to what they expect it should be doing.
* | Remove v0 hidden service statistics code.Karsten Loesing2009-12-17
| | | | | | | | | | | | | | | | | | | | The HSAuthorityRecordStats option was used to track statistics of overall hidden service usage on the version 0 hidden service authorities. With the version 2 hidden service directories being deployed and version 0 descriptors being phased out, these statistics are not as useful anymore. Goodbye, you fine piece of software; my first major code contribution to Tor.
* | Remove some dead code found by coverity, cid 404Sebastian Hahn2009-12-14
| | | | | | | | | | | | | | In connection_dir_client_reached_eof, we make sure that we either return when we get an http status code of 503 or handle the problem and set it to 200. Later we check if the status code is 503. Remove that check.
* | Merge commit 'sebastian/coverity'Nick Mathewson2009-12-12
|\ \