[tor-bugs] #21039 [Core Tor/Tor]: Refactor and simplify guard code of circuit_send_next_onion_skin()

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Dec 20 13:20:17 UTC 2016


#21039: Refactor and simplify guard code of circuit_send_next_onion_skin()
------------------------------+---------------------------------
     Reporter:  asn           |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.1.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-guard, refactor
Actual Points:                |  Parent ID:  #20822
       Points:  0.3           |   Reviewer:
      Sponsor:                |
------------------------------+---------------------------------
 As part of prop271 (#19877), we added about 70 fresh lines of code to
 `circuit_send_next_onion_skin()` which is an already convoluted function.

 Ideally we should abstract this new circuit-related guard code and put it
 in its own functions, to reduce complexity of
 `circuit_send_next_onion_skin()` and maybe even make it unittestable.

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


More information about the tor-bugs mailing list