[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #22781 [Core Tor/Tor]: hs: Unify link specifier API/ABI
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs