diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-18 15:17:37 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | 8a552bf49bb94dbca6163e7063d776f5f3a96694 (patch) | |
tree | aba6137b69d129d8f23313f849b1c69e94236022 /src/or/hs_common.h | |
parent | 8e2854372d777d6be63d1bf766ca6db9100490de (diff) | |
download | tor-8a552bf49bb94dbca6163e7063d776f5f3a96694.tar.gz tor-8a552bf49bb94dbca6163e7063d776f5f3a96694.zip |
prop224: Make lspecs to extend info public
The hs circuit file had this function that takes a list of link specifiers and
return a newly allocated extend info object. Make it public so the client side
can also use it to be able to extend to introduction point.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_common.h')
-rw-r--r-- | src/or/hs_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h index 6ad68d0a8a..79d92d915f 100644 --- a/src/or/hs_common.h +++ b/src/or/hs_common.h @@ -237,6 +237,10 @@ int hs_set_conn_addr_port(const smartlist_t *ports, edge_connection_t *conn); void hs_inc_rdv_stream_counter(origin_circuit_t *circ); void hs_dec_rdv_stream_counter(origin_circuit_t *circ); +extend_info_t *hs_get_extend_info_from_lspecs(const smartlist_t *lspecs, + const curve25519_public_key_t *onion_key, + int direct_conn); + #ifdef HS_COMMON_PRIVATE STATIC void get_disaster_srv(uint64_t time_period_num, uint8_t *srv_out); |