tor/src/or
Nick Mathewson 79a3b3cd37 Check transition of circuit purpose from INTRO->GENERAL if nodes are constrained
This looked at first like another fun way around our node selection
logic: if we had introduction circuits, and we wound up building too
many, we would turn extras into general-purpose circuits.  But when we
did so, we wouldn't necessarily check whether the general-purpose
circuits conformed to our node constraints.  For example, the last
node could totally be in ExcludedExitNodes and we wouldn't have cared...

...except that the circuit should already be internal, so it won't get user
streams attached to it, so the transition should generally be allowed.
Add an assert to make sure we're right about this, and have it not
check whether ExitNodes is set, since that's irrelevant to internal
circuits.
2011-04-26 23:54:18 -04:00
..
buffers.c Triage the XXX022 and XXX021 comments remaining in the code 2011-03-25 18:32:27 -04:00
buffers.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
circuitbuild.c If we have chosen an exit that shares a family with all bridges, fail the circuit 2011-04-26 23:54:17 -04:00
circuitbuild.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
circuitlist.c When cannibalizing a circuit, make sure it has no ExcludeNodes on it 2011-04-26 23:54:17 -04:00
circuitlist.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
circuituse.c slight tweak on circuit_conforms_to_options 2011-04-26 23:54:04 -04:00
circuituse.h slight tweak on circuit_conforms_to_options 2011-04-26 23:54:04 -04:00
command.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:58:59 -05:00
command.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
config_codedigest.c fix codestyle issues 2009-05-24 02:42:37 +02:00
config.c When there is a transition in permitted nodes, apply it to trackexithosts map 2011-04-26 23:54:17 -04:00
config.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
connection_edge.c When there is a transition in permitted nodes, apply it to trackexithosts map 2011-04-26 23:54:17 -04:00
connection_edge.h When there is a transition in permitted nodes, apply it to trackexithosts map 2011-04-26 23:54:17 -04:00
connection_or.c Clarify some documentation and comments wrt resetting OR token buckets 2011-03-25 18:32:28 -04:00
connection_or.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
connection.c Add a missing cast to silence the compiler 2011-03-28 19:25:38 +02:00
connection.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
control.c Expose a new process_signal(uintptr_t), not signal_callback() 2011-04-26 15:20:08 -04:00
control.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
cpuworker.c Merge remote branch 'sebastian/bug2314' into maint-0.2.2 2011-01-03 12:47:14 -05:00
cpuworker.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
directory.c handle excludenodes for dir fetch/post 2011-04-26 23:53:50 -04:00
directory.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
dirserv.c Triage the XXX022 and XXX021 comments remaining in the code 2011-03-25 18:32:27 -04:00
dirserv.h Don't leak the local hostname in relay nicknames 2011-04-26 05:08:32 +02:00
dirvote.c Fix log message when we have too few dirauths 2011-03-07 00:06:36 +01:00
dirvote.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
dns.c Fixup tor_addr_to_sockaddr return convention 2011-03-25 16:28:38 -04:00
dns.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
dnsserv.c Merge remote-tracking branch 'public/bug2332' into maint-0.2.2 2011-04-26 13:10:54 -04:00
dnsserv.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
eventdns_tor.h Bump copyright statements to 2011 2011-01-03 11:50:39 -05:00
eventdns.c Merge remote-tracking branch 'public/bug2332' into maint-0.2.2 2011-04-26 13:10:54 -04:00
eventdns.h Make eventdns server functions const void* to match libevent 2011-01-10 16:00:48 -05:00
geoip.c Merge remote-tracking branch 'public/xxx_fixups' into maint-0.2.2 2011-04-07 12:03:04 -04:00
geoip.h Allow controllers a more up-to-date view of bridge usage. 2011-04-07 11:53:37 -04:00
hibernate.c Log more about soft-hibernation 2011-01-25 18:45:13 -05:00
hibernate.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
main.c Expose a new process_signal(uintptr_t), not signal_callback() 2011-04-26 15:20:08 -04:00
main.h Expose a new process_signal(uintptr_t), not signal_callback() 2011-04-26 15:20:08 -04:00
Makefile.am Ouch: correctly tabify the micro-revision.i target in Makefile.am (0.2.1 only) 2011-04-19 12:29:20 -04:00
microdesc.c Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
microdesc.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
networkstatus.c Clarify some documentation and comments wrt resetting OR token buckets 2011-03-25 18:32:28 -04:00
networkstatus.h Sanity-check consensus param values 2011-01-15 19:42:17 +01:00
ntmain.c Doxygen documentation for about 100 things that didn't have any 2011-03-16 17:05:37 -04:00
ntmain.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
onion.c Make the DH parameter we use for TLS match the one from Apache's mod_ssl 2011-02-10 15:55:06 -05:00
onion.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
or.h If EntryNodes and ExcludeNodes overlap, obey ExcludeNodes. 2011-04-26 23:53:49 -04:00
policies.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-03-06 13:20:21 -05:00
policies.h Don't let bad DNS make exit policy and declared exit policy get out of sync 2011-02-22 14:06:28 -05:00
reasons.c Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsolete 2011-03-28 13:42:59 -04:00
reasons.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
relay.c Add XXX023s for our timestamp_dirty abuse. 2011-03-25 18:32:28 -04:00
relay.h Move the decl for tor_gettimofday_cache_clear to the right header 2011-03-16 17:54:48 -04:00
rendclient.c refuse excluded hidserv nodes if strictnodes 2011-04-26 23:53:20 -04:00
rendclient.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendcommon.c Triage the XXX022 and XXX021 comments remaining in the code 2011-03-25 18:32:27 -04:00
rendcommon.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendmid.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:58:59 -05:00
rendmid.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rendservice.c Check transition of circuit purpose from INTRO->GENERAL if nodes are constrained 2011-04-26 23:54:18 -04:00
rendservice.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
rephist.c fix some comments before they create conflicts 2011-04-26 11:29:22 -04:00
rephist.h Use observed instead of declared uptime for HSDir 2011-03-11 18:44:35 +01:00
router.c If we're excluded, and StrictNodes is set, do not do self-tests. 2011-04-26 23:54:15 -04:00
router.h Bump copyright statements to 2011 (0.2.2) 2011-01-03 11:52:09 -05:00
routerlist.c When there is a transition in permitted nodes, apply it to trackexithosts map 2011-04-26 23:54:17 -04:00
routerlist.h When there is a transition in permitted nodes, apply it to trackexithosts map 2011-04-26 23:54:17 -04:00
routerparse.c Standardize our printf code on %d, not %i. 2011-04-19 12:40:29 -04:00
routerparse.h Move the decl for tor_gettimofday_cache_clear to the right header 2011-03-16 17:54:48 -04:00
tor_main.c Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2 2011-01-03 11:51:17 -05:00