[tor-bugs] #22311 [Core Tor/Tor]: authdir_mode_any_nonhidserv() is an obsolete concept

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 20 08:09:23 UTC 2017


#22311: authdir_mode_any_nonhidserv() is an obsolete concept
--------------------------+---------------------
 Reporter:  arma          |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  easy          |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+---------------------

Comment (by arma):

 As a bonus, any call to {{{authdir_mode_handles_descs(options, -1)}}} can
 also be converted to just a check to authdir_mode().

 Then if we like, authdir_mode_handles_descs(options,
 ROUTER_PURPOSE_BRIDGE) could become just authdir_mode_bridge(options).

 And authdir_mode_handles_descs(options, ROUTER_PURPOSE_GENERAL) could
 become just authdir_mode_v3(options).

 And authdir_mode_any_main() could disappear because we don't need it
 anymore.

 Maybe the other wrapper functions are now overly complexified too. Worth
 exploring!

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22311#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list