summaryrefslogtreecommitdiff
path: root/src/or/control.c
AgeCommit message (Collapse)Author
2011-10-26manually backport a5232e0c4cRoger Dingledine
2011-05-11Hand-conversion and audit phase of memcmp transitionNick Mathewson
Here I looked at the results of the automated conversion and cleaned them up as follows: If there was a tor_memcmp or tor_memeq that was in fact "safe"[*] I changed it to a fast_memcmp or fast_memeq. Otherwise if there was a tor_memcmp that could turn into a tor_memneq or tor_memeq, I converted it. This wants close attention. [*] I'm erring on the side of caution here, and leaving some things as tor_memcmp that could in my opinion use the data-dependent fast_memcmp variant.
2011-05-11Automated conversion of memcmp to tor_memcmp/tor_mem[n]eqNick Mathewson
This commit is _exactly_ the result of perl -i -pe 's/\bmemcmp\(/tor_memcmp\(/g' src/*/*.[ch] perl -i -pe 's/\!\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*==\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*!=\s*tor_memcmp\(/tor_memneq\(/g' src/*/*.[ch] git checkout src/common/di_ops.[ch] git checkout src/or/test.c git checkout src/common/test.h
2011-01-03Bump copyright statements to 2011Nick Mathewson
2010-02-27Update Tor Project copyright yearsNick Mathewson
2009-10-26Fix an apparently bogus check; fortunately, it seems to be untriggered.Nick Mathewson
2009-10-26Fix two memory leaks found by Coverity (CIDs 417-418)Nick Mathewson
The first happens on an error case when a controller wants an impossible directory object. The second happens when we can't write our fingerprint file.
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-08-31Add getinfo accepted-server-descriptor. Clean spec.Roger Dingledine
Add a "getinfo status/accepted-server-descriptor" controller command, which is the recommended way for controllers to learn whether our server descriptor has been successfully received by at least on directory authority. Un-recommend good-server-descriptor getinfo and status events until we have a better design for them.
2009-06-24Ignore control port commands after a QUITMarcus Griep
When a QUIT has been issued on a control port connection, then ignore further commands on that port. This fixes bug 1016.
2009-06-24Flush long replies over control port on QUITMarcus Griep
Marks the control port connection for flushing before closing when the QUIT command is issued. This allows a QUIT to be issued during a long reply over the control port, flushing the reply and then closing the connection. Fixes bug 1015.
2009-05-30Don't attempt to log messages to a controller from a worker thread.Nick Mathewson
This patch adds a function to determine whether we're in the main thread, and changes control_event_logmsg() to return immediately if we're in a subthread. This is necessary because otherwise we will call connection_write_to_buf, which modifies non-locked data structures. Bugfix on 0.2.0.x; fix for at least one of the things currently called "bug 977".
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-14Fix misreporting of stream bandwidths.Mike Perry
2009-05-04Update copyright to 2009.Karsten Loesing
2009-03-18Do not generate the non-verbose circuit path when generating a circuit event ↵Nick Mathewson
unless we will use it. svn:r19079
2009-02-20send the newconsensus event if the controller has asked for newconsensusRoger Dingledine
events, not if he's asked for ns events svn:r18656
2009-02-16docdoc and changelog for r18556Roger Dingledine
svn:r18566
2009-02-16and list the new event here tooRoger Dingledine
svn:r18557
2009-02-16new controller event NEWCONSENSUS that lists the networkstatusRoger Dingledine
lines for every recommended relay. still needs docdoc and changelog entry. svn:r18556
2009-01-28clean up r18287Roger Dingledine
svn:r18288
2009-01-28patch from matt to implement 'getinfo status/clients-seen'Roger Dingledine
svn:r18287
2009-01-27gah. yet another place that needs to be edited when we addRoger Dingledine
a new event. what a mess. svn:r18277
2009-01-21Let controllers actually ask for the "clients_seen" event. BugfixRoger Dingledine
on 0.2.1.10-alpha; reported by Matt Edman. svn:r18201
2009-01-13Fix up (I hope) most ot the things that coverity suddenly claimed were ↵Nick Mathewson
REVERSE_INULL. This is what we get for bragging about being down to 0 issues. svn:r18096
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-29While I'm at it, refactor control.c a little so that the dead code no longer ↵Nick Mathewson
exists. svn:r17810
2008-12-27New controller event "clients_seen" to report a geoip-based summaryRoger Dingledine
of which countries we've seen clients from recently. Now controllers like Vidalia can show bridge operators that they're actually making a difference. svn:r17796
2008-12-27Remove a deprecated controller alias; make another one generate a warning.Nick Mathewson
svn:r17793
2008-12-25some fixes i found in my sandboxRoger Dingledine
svn:r17771
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Make doxygen not complain about the way we spell CRLFNUL in control.cNick Mathewson
svn:r17735
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-18Massage a little code to hopfully please coverity.Nick Mathewson
svn:r17669
2008-12-17Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson
svn:r17643
2008-12-11Note that a couple of line in control.c are supposed to be dead-code.Nick Mathewson
I'm hoping not to have to litter the rest of our codebase with Coverity ignores, but I think these are the only one we need right now. svn:r17602
2008-12-10note a potential bug in status events. need to look at spec toRoger Dingledine
see if it's really a bug. svn:r17548
2008-12-10Resume using the correct "REASON=" stream when telling theRoger Dingledine
controller why we closed a stream. Bugfix in 0.2.1.1-alpha. svn:r17547
2008-12-09remove a bogus comment. Now that there is no undocumented synonym for ↵Nick Mathewson
EXTENDED_EVENTS, we do not need to point out that EXTENDED_EVENTS is documented svn:r17542
2008-12-09Finally remove deprecated-since-0.1.2.4-alpha EXTENDED_FORMAT synonym for ↵Nick Mathewson
EXTENDED_EVENTS svn:r17538
2008-11-11Add PURPOSE= field to getinfo circuit-status. With luck, controllers are ↵Nick Mathewson
ignoring extra fields (like they are supposed to) and this will not break any controllers. svn:r17245
2008-10-13Minor fix in the warning messages when you're having problems Roger Dingledine
bootstrapping; also, be more forgiving of bootstrap problems when we're still making incremental progress on a given bootstrap phase. svn:r17066
2008-09-29Include circuit purposes in circuit events. Now all circuit events are ↵Nick Mathewson
extended; this makes the code simpler. svn:r17007
2008-09-26Proposal 152 implementation from Josh Albrecht, with tweaks.Nick Mathewson
svn:r16983
2008-09-14Serve the latest v3 networkstatus consensus via the controlRoger Dingledine
port. Use "getinfo dir/status-vote/current/consensus" to fetch it. svn:r16907
2008-09-05Refactor some code and add some asserts based on scanner results.Nick Mathewson
svn:r16783
2008-08-15Switch global_identifier on connections to a 64-bit field and move it to ↵Nick Mathewson
connection_t. When procession onionskins, look up the connection by this field rather than by addr:port. This will keep us from dropping onionskins. How many dropped circuits are dropped because of this bug? svn:r16558