aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
Commit message (Collapse)AuthorAge
* start to refactor dirserver_mode()Roger Dingledine2007-12-01
| | | | svn:r12621
* Bugfix on r7072, which turned out to basically be a no-op:Roger Dingledine2007-10-21
| | | | | | | | | | | | | | Respond to INT and TERM SIGNAL commands before we execute the signal, in case the signal shuts us down. We had a patch in 0.1.2.1-alpha that tried to do this by queueing the response on the connection's buffer before shutting down, but that really isn't the same thing. Bug located by Matt Edman. This is a bug in 0.1.2.x too, but there's no way we should backport this fix. Speaking of which, can somebody double-check it? :) svn:r12070
* revert a tiny bit of r12035Roger Dingledine2007-10-18
| | | | svn:r12037
* various fixes from reading or-cvs the past few daysRoger Dingledine2007-10-18
| | | | svn:r12035
* 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
* Controllers should now specify cache=no or cache=yes when usingRoger Dingledine2007-10-12
| | | | | | | the +POSTDESCRIPTOR command. svn:r11892
* Disable the SETROUTERPURPOSE controller command: it is now obsolete.Roger Dingledine2007-10-11
| | | | svn:r11891
* Bugfix on r11138:Roger Dingledine2007-10-11
| | | | | | | | | Fix a minor memory leak whenever a controller sends the PROTOCOLINFO command. Bugfix on 0.2.0.5-alpha. Backport candidate. svn:r11864
* r15598@catbus: nickm | 2007-10-09 16:37:35 -0400Nick Mathewson2007-10-09
| | | | | | | Turn all "Is DirPort nonzero? Because if it is, we must be a directory" logic into calls to dirserver_mode(). svn:r11817
* r14812@Kushana: nickm | 2007-10-09 10:22:00 -0400Nick Mathewson2007-10-09
| | | | | | | Merge extra fields in local_routerstatus_t back into routerstatus_t. See changelog for rationale. svn:r11799
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson2007-10-04
| | | | | | | Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761
* r15422@catbus: nickm | 2007-09-27 16:42:35 -0400Nick Mathewson2007-09-27
| | | | | | | Use descriptor annotations to record the source, download t time, and purpose of every descriptor we add to the store. The remaining to-do item is to stop setting do_not_cache on bridges. svn:r11680
* r15143@catbus: nickm | 2007-09-18 11:49:46 -0400Nick Mathewson2007-09-18
| | | | | | | Add getinfo status/good-server-descriptor and status/reachability-succeeded. Patch from Robert Hogan. svn:r11483
* r15068@catbus: nickm | 2007-09-14 15:25:02 -0400Nick Mathewson2007-09-14
| | | | | | | Fix a couple typos in control.c; spotted by Robert Hogan. svn:r11440
* r14363@Kushana: nickm | 2007-09-08 16:25:45 -0400Nick Mathewson2007-09-08
| | | | | | | Another round of whitespeace fixes. svn:r11407
* Make sure that even dumb compilers can tell that bad_cookie and bad_password ↵Nick Mathewson2007-09-06
| | | | | | are set before use. svn:r11390
* r14328@Kushana: nickm | 2007-09-04 20:17:34 -0400Nick Mathewson2007-09-05
| | | | | | | There is no good reason to make hashedcontrolpassword and cookieauthentication mutually exclusive. So let's not. svn:r11377
* r14830@catbus: nickm | 2007-08-29 13:50:10 -0400Nick Mathewson2007-08-29
| | | | | | | Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate. svn:r11299
* r14204@Kushana: nickm | 2007-08-24 10:24:36 -0400Nick Mathewson2007-08-24
| | | | | | | Fix a bug in last patch; add support for getting extrainfo documents by the control port (since it is silly to tell tools to do it without actually giving them an interface). svn:r11270
* r14203@Kushana: nickm | 2007-08-24 10:15:58 -0400Nick Mathewson2007-08-24
| | | | | | | Add a hacked-up GETINFO desc/all-recent-extrainfo-hack so that torstat can keep working with a minimum of fuss, until it learns about extrainfo documents. svn:r11269
* a single quote != a single double quote. i can't hear theRoger Dingledine2007-08-23
| | | | | | | circus music from here, perhaps we should move closer. svn:r11256
* backport candidate:Roger Dingledine2007-08-22
| | | | | | | | Make it possible to read the PROTOCOLINFO response in a way that conforms to our control-spec. Reported by Matt Edman. svn:r11251
* avoid double-punctuation when we're reporting errors from theRoger Dingledine2007-08-20
| | | | | | | config functions to the controller. svn:r11221
* Fix a bug in ADDRMAP controller replies that would sometimesRoger Dingledine2007-08-19
| | | | | | | try to print a NULL. Patch from tup. svn:r11181
* r14606@catbus: nickm | 2007-08-16 13:45:01 -0400Nick Mathewson2007-08-16
| | | | | | | Implement CookieAuthFile and CookieAuthFileGroupReadable. Backport candidate. svn:r11141
* r14600@catbus: nickm | 2007-08-16 13:30:22 -0400Nick Mathewson2007-08-16
| | | | | | | Implement proposal 119. Backport candidate. svn:r11138
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400Nick Mathewson2007-08-15
| | | | | | | Fix an XXXX020 and a few DOCDOCs. svn:r11127
* this does not actually change anything (i hope), but it makes me a lotRoger Dingledine2007-08-15
| | | | | | | | more comfortable. nick, can you confirm this? svn:r11119
* backport candidate:Roger Dingledine2007-08-15
| | | | | | | | | | | - If we require CookieAuthentication but we fail to write the cookie file, we would warn but not exit, and end up in a state where no controller could authenticate. Now we exit. - If we require CookieAuthentication, stop generating a new cookie every time we change any piece of our config. svn:r11117
* a patch on r11016 that makes it work betterRoger Dingledine2007-08-02
| | | | svn:r11018
* r13892@Kushana: nickm | 2007-08-01 18:27:13 -0700Nick Mathewson2007-08-02
| | | | | | | Close immediately after anything but a successful authentication attempt on the control port. Backport candidate. svn:r11016
* r14016@catbus: nickm | 2007-07-30 13:45:55 -0400Nick Mathewson2007-07-30
| | | | | | | More documentation svn:r10992
* r13972@catbus: nickm | 2007-07-29 00:01:38 -0400Nick Mathewson2007-07-29
| | | | | | | Make our control events for multi-line async replies conform to our old grammar. Change back to the old grammar (which got "corrected" in r10931). svn:r10964
* r13907@catbus: nickm | 2007-07-25 18:51:25 -0400Nick Mathewson2007-07-25
| | | | | | | | Patch from tup: translate LFs to CRLFs in NS replies and ensures the data section is properly terminated with "\r\n.\r\n svn:r10932
* r13905@catbus: nickm | 2007-07-25 18:48:44 -0400Nick Mathewson2007-07-25
| | | | | | | ADDRMAP events should never have specified local time. Extend them to have the proper gmt time, and make GETINFO address-mappings always do the right thing (since it is new in this version). svn:r10930
* r13784@catbus: nickm | 2007-07-16 13:27:32 -0400Nick Mathewson2007-07-16
| | | | | | | Apply patch from tup: remove extra space at the end of some circuit-status events, and stop translating CRLF to CRCRLF in control replies. svn:r10845
* r13777@catbus: nickm | 2007-07-16 12:58:08 -0400Nick Mathewson2007-07-16
| | | | | | | Patch from tup: new address-mappings/ GETINFO that includes expiry times. svn:r10844
* Backport candidate:Roger Dingledine2007-07-16
| | | | | | | | | Fix a potential crash bug when we load many server descriptors at once and some of them make others of them obsolete. Fixes bug 458. [Bugfix on 0.1.2.x] svn:r10832
* r13676@catbus: nickm | 2007-07-10 13:41:24 -0400Nick Mathewson2007-07-10
| | | | | | | Man. I thought I removed that code. svn:r10785
* r13667@catbus: nickm | 2007-07-10 13:12:52 -0400Nick Mathewson2007-07-10
| | | | | | | Patch from tup: add GETINFO status/enough-dir-info svn:r10782
* r13666@catbus: nickm | 2007-07-10 13:10:00 -0400Nick Mathewson2007-07-10
| | | | | | | Get the RESOLVE controller code working. svn:r10781
* r13637@catbus: nickm | 2007-07-06 14:24:27 -0400Nick Mathewson2007-07-10
| | | | | | | | | | fix copy-paste error in config message src/or/config.c . Apply initial (but pared-down) version of launch-resolve-via-controller patch from Robert Hogan. svn:r10780
* r13463@catbus: nickm | 2007-06-17 11:10:17 -0400Nick Mathewson2007-06-17
| | | | | | | Add a SOURCE_ADDR field to STREAM NEW events so that controllers can match requests to applications. (Patch from Robert Hogan.) svn:r10639
* r13102@catbus: nickm | 2007-05-31 13:56:25 -0400Nick Mathewson2007-05-31
| | | | | | | Make "authdir_newdesc rejected" work again. svn:r10421
* r12936@catbus: nickm | 2007-05-24 14:12:34 -0400Nick Mathewson2007-05-24
| | | | | | | Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315
* r12853@catbus: nickm | 2007-05-22 11:36:54 -0400Nick Mathewson2007-05-22
| | | | | | | Make connection_array into a smartlist. svn:r10292
* r12852@catbus: nickm | 2007-05-22 11:00:27 -0400Nick Mathewson2007-05-22
| | | | | | | Use svn revisions consistently throughout all log messages. svn:r10291
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
* r12764@catbus: nickm | 2007-05-15 17:17:39 -0400Nick Mathewson2007-05-15
| | | | | | | Enable (and cope with) more GCC 4.2 warnings. svn:r10196