[tor-bugs] #22781 [Core Tor/Tor]: hs: Unify link specifier API/ABI

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jun 30 15:17:47 UTC 2017


#22781: hs: Unify link specifier API/ABI
-------------------------------+--------------------------------
     Reporter:  dgoulet        |      Owner:  dgoulet
         Type:  enhancement    |     Status:  new
     Priority:  Medium         |  Milestone:  Tor: 0.3.2.x-final
    Component:  Core Tor/Tor   |    Version:
     Severity:  Normal         |   Keywords:  prop224, tor-hs
Actual Points:                 |  Parent ID:
       Points:  1              |   Reviewer:
      Sponsor:  SponsorR-must  |
-------------------------------+--------------------------------
 In `hs_descriptor.{c|h}`, link specifiers are used to encode the
 introduction points in the descriptor. The decoded version is represented
 by the `hs_desc_link_specifier_t` object which is used to build a trunnel
 object that is then base64 encoded and put in the descriptor.

 With the service and client implementation of prop224, link specifiers are
 also used in the INTRODUCE1 cell. Client will encode them in the cell and
 service decodes them (INTRODUCE2 cell).

 This ticket is to unify the link specifier API/ABI used between cell and
 descriptor for both encoding and decoding in order to avoid code
 duplication.

 Furthermore, future work could expend this to the `EXTEND2` cell that also
 requires link specifiers (`extend_cell_from_extend2_cell_body()` and
 `extend_cell_format()`.

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


More information about the tor-bugs mailing list