[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #20657 [Core Tor/Tor]: prop224: Implement service support.



#20657: prop224: Implement service support.
-----------------------------+------------------------------------
 Reporter:  dgoulet          |          Owner:
     Type:  enhancement      |         Status:  new
 Priority:  Medium           |      Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor     |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:  tor-hs, prop224  |  Actual Points:
Parent ID:  #12424           |         Points:  parent
 Reviewer:                   |        Sponsor:  SponsorR-must
-----------------------------+------------------------------------

Comment (by asn):

 As discussed with dgoulet, I refactored the HS circuitmap codebase to be
 able to accept service-side circuits as well. Relay-side circuits are
 isolated from the service-side circuits using token types even if they
 have the same purpose; a test was added for this.

 The public service-side API is the following, and it's identical to the
 relay-side one but uses `origin_circuit_t` instead of `or_circuit_t`:

 {{{
 void hs_circuitmap_register_intro_circ_v2_service_side(origin_circuit_t
 *circ, const uint8_t *digest);
 void hs_circuitmap_register_intro_circ_v3_service_side(origin_circuit_t
 *circ, const ed25519_public_key_t *auth_key);
 void hs_circuitmap_register_rend_circ_service_side(origin_circuit_t *circ,
 const uint8_t *cookie);
 origin_circuit_t *hs_circuitmap_get_intro_circ_v3_service_side(const
 ed25519_public_key_t *auth_key);
 origin_circuit_t *hs_circuitmap_get_intro_circ_v2_service_side(const
 uint8_t *digest);
 origin_circuit_t *hs_circuitmap_get_rend_circ_service_side(const uint8_t
 *cookie);
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20657#comment:3>
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