aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
Commit message (Collapse)AuthorAge
* Authorities also advertise caches-extra-infoNick Mathewson2014-06-20
| | | | | | (Whoops, thought I had committed this before) Improvement to 11683 fix. Based on patch from Karsten.
* Fix a sentence that I neverNick Mathewson2014-05-20
|
* note a comment that nickm didn't finishRoger Dingledine2014-05-17
|
* Uplift status.c unit test coverage with new test cases and macros.dana koch2014-04-15
| | | | | | | | | | | | | | | A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution.
* Merge branch 'bug7952_final'Nick Mathewson2014-04-08
|\ | | | | | | | | | | Conflicts: src/test/include.am src/test/test.c
| * Making entire exit policy available to Tor controller.rl19872014-04-08
| |
* | Take out remaining V1 directory code.Karsten Loesing2014-03-18
| |
* | Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson2014-03-05
|\ \ | | | | | | | | | | | | | | | Conflicts: src/or/router.c src/test/test_dir.c
| * | stop setting, or using, router->addressRoger Dingledine2013-02-09
| | | | | | | | | | | | resolves ticket 5528.
| * | use me->addr when adding our address to our exit policyRoger Dingledine2013-02-09
| | | | | | | | | | | | (rather than me->address)
| * | use router->addr for log messages and controller eventsRoger Dingledine2013-02-09
| | | | | | | | | | | | (rather than router->address)
| * | stop passing "address" around the directory_initiate_command* funcsRoger Dingledine2013-02-09
| | | | | | | | | | | | since it was always just the string version of "addr" anyway
* | | Unit tests for test_routerkeys_write_fingerprintNick Mathewson2014-02-28
| | |
* | | Tighten router_write_fingerprint implNick Mathewson2014-02-28
| | |
* | | Write hashed bridge fingerprint to logs and to disk.Karsten Loesing2014-02-28
| | | | | | | | | | | | Implements #10884.
* | | Remove a bunch of functions that were never called.Nick Mathewson2014-02-15
| | |
* | | Remove options for configuring HS authorities.Nick Mathewson2014-02-10
| | | | | | | | | | | | | | | | | | | | | | | | (There is no longer meaningfully any such thing as a HS authority, since we stopped uploading or downloading v0 hs descriptors in 0.2.2.1-alpha.) Implements #10881, and part of #10841.
* | | remove node_describe_by_id() functionQingping Hou2014-02-06
| | | | | | | | | | | | This function is not used anymore
* | | Merge remote-tracking branch 'houqp/hs_control'Nick Mathewson2014-02-03
|\ \ \
| * | | add hidden service descriptor async control eventQingping Hou2014-01-29
| | | |
* | | | Rip out all of the v2 directory code.Nick Mathewson2014-01-29
|/ / / | | | | | | | | | | | | | | | The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-11-10
|\ \ \
| * | | Fix two more DirServer mentions in logNick Mathewson2013-11-10
| | | |
* | | | Tweak a commentNick Mathewson2013-10-08
| | | |
* | | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-10-08
|\| | | | |_|/ |/| |
| * | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-10-08
| |\ \
| | * | Fix an assert when disabling ORPort with accounting disabled.Nick Mathewson2013-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the server_identity_key_is_set() function could return true under conditions where we don't really have an identity key -- specifically, where we used to have one, but we stopped being a server. This is a fix for 6979; bugfix on 0.2.2.18-alpha where we added that assertion to get_server_identity_key().
* | | | Completely refactor how FILENAME_PRIVATE worksNick Mathewson2013-07-10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We previously used FILENAME_PRIVATE identifiers mostly for identifiers exposed only to the unit tests... but also for identifiers exposed to the benchmarker, and sometimes for identifiers exposed to a similar module, and occasionally for no really good reason at all. Now, we use FILENAME_PRIVATE identifiers for identifiers shared by Tor and the unit tests. They should be defined static when we aren't building the unit test, and globally visible otherwise. (The STATIC macro will keep us honest here.) For identifiers used only by the unit tests and never by Tor at all, on the other hand, we wrap them in #ifdef TOR_UNIT_TESTS. This is not the motivating use case for the split test/non-test build system; it's just a test example to see how it works, and to take a chance to clean up the code a little.
* | | Merge bug5595-v2-squashed into maint-0.2.4Andrea Shepard2013-05-10
|\ \ \
| * | | When downloading certificates, distinguish requesting by identity digest ↵Andrea Shepard2013-05-09
| |/ / | | | | | | | | | from requesting by ID digest, signing key pair; fixes bug 5595
| * | oops; add a missing semicolonNick Mathewson2013-02-12
| | | | | | | | | | | | (Cherry-picked from fc35ee4910326dc1ae718482b30e57666a71df85)
* | | Merge remote-tracking branch 'public/bug6026' into maint-0.2.4Nick Mathewson2013-04-24
|\ \ \
| * | | Treat a changed IPv6 ORPort like an IPv4 one in retry_all_listeners()Nick Mathewson2013-03-11
| | | | | | | | | | | | | | | | Fix for bug 6026
* | | | Merge branch 'less_charbuf_rebased' into maint-0.2.4Nick Mathewson2013-04-18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c src/or/dirserv.h src/test/test_dir.c
| * | | | Re-enable test for parsing and generating descriptor with exit policyNick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Looks like I turned this off in 6ac42f5e back in 2003 and never got around to making it work again. There has been no small amount of code drift.
| * | | | Refactor dirobj signature generationNick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we can compute the hash and signature of a dirobj before concatenating the smartlist, and we don't need to play silly games with sigbuf and realloc any more.
| * | | | Use chunks, not buffers, for router descriptorsNick Mathewson2013-04-18
| | | | |
* | | | | Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4Nick Mathewson2013-03-15
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Remove some totally unused functionsNick Mathewson2013-02-23
| |/ / /
* | | | start part-way through the ssl cert lifetimeRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | | | | | also, snap the start time and end time to a day boundary, since most certs in the wild seem to do this.
* | | | randomize SSLKeyLifetime by defaultRoger Dingledine2013-03-10
| | | | | | | | | | | | | | | | resolves ticket 8443.
* | | | parameterize SSLKeyLifetimeRoger Dingledine2013-03-10
|/ / / | | | | | | | | | no actual changes in behavior yet
* | | touchups on 78582760Roger Dingledine2013-02-19
| | |
* | | Revise some comments in router.cNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | Avoid the phrase "legally valid" (as opposed to valid but not legal)? And document what functions really do. Fix for bug 6935.
* | | Merge remote-tracking branch 'public/wide_circ_ids'Nick Mathewson2013-02-15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/channel.h src/or/connection_or.c src/or/cpuworker.c
| * | | Allow a v4 link protocol for 4-byte circuit IDs.Nick Mathewson2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | Implements proposal 214. Needs testing.
* | | | get rid of the new caching notion in resolve_my_address()Roger Dingledine2013-02-12
| | | | | | | | | | | | | | | | and replace it with the good old-fashioned two functions approach
* | | | Stop trying to resolve our hostname so oftenRoger Dingledine2013-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, we were doing a resolve every time we think about doing a directory fetch. Now we reuse the cached answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc) and 2410 (bugfix on 0.1.2.2-alpha).
* | | | Teach resolve_my_address() to return a cached answerRoger Dingledine2013-02-11
| | | | | | | | | | | | | | | | I didn't make any of the callers use this feature yet.
* | | | oops; add a missing semicolonNick Mathewson2013-02-11
| | | |