tor/src/or
David Goulet d599325b5e prop224: Build INTRODUCE1 cell and send logic
Add a function in hs_cell.{c|h} for a client to build an INTRODUCE1 cell using
an object that contains all the needed keys to do so.

Add an entry point in hs_client.c that allows a tor client to send an
INTRODUCE1 cell on a given introduction circuit.

It includes the building of the cell, sending it and the setup of the
rendezvous circuit with the circuit identifier.

The entry point function is still unused at this commit.

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-08-24 13:03:28 -04:00
..
addressmap.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
addressmap.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
bridges.c Set guard state on bridge descriptor fetches. 2017-05-22 15:57:33 +03:00
bridges.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
buffers.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
buffers.h Replace peek_buf_startswith() with a safe version 2017-06-21 11:10:58 -04:00
channel.c Merge branch 'callgraph_reduction_v2' 2017-06-21 16:47:55 -04:00
channel.h Merge branch 'callgraph_reduction_v2' 2017-06-21 16:47:55 -04:00
channelpadding.c Demote a log message due to libevent delays. 2017-06-26 11:26:59 -04:00
channelpadding.h Fix issues from dgoulet's code review. 2017-05-08 13:49:23 -04:00
channeltls.c general formatting / whitespace / typo fixes 2017-07-01 17:56:06 -04:00
channeltls.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
circpathbias.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
circpathbias.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
circuitbuild.c Merge branch 'bug18982' 2017-08-11 12:11:42 -04:00
circuitbuild.h Explicit length checks in circuit_init_cpath_crypto(). 2017-07-07 11:12:27 -04:00
circuitlist.c prop224: Add a circuit has closed callback 2017-08-08 20:29:34 -04:00
circuitlist.h prop224: Service v3 descriptor creation and logic 2017-08-08 20:29:33 -04:00
circuitmux_ewma.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
circuitmux_ewma.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
circuitmux.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
circuitmux.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
circuitstats.c Merge branch 'maint-0.3.0' 2017-05-18 10:06:27 -04:00
circuitstats.h Merge branch 'maint-0.3.0' 2017-05-18 10:06:27 -04:00
circuituse.c prop224: Function to inc/decrement num rendezvous stream 2017-08-08 20:29:35 -04:00
circuituse.h prop224: Always note down the use of internal circuit 2017-08-08 20:29:35 -04:00
command.c Explicit length checks in circuit_init_cpath_crypto(). 2017-07-07 11:12:27 -04:00
command.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
config.c routerkeys: Add cmdline option for learning signing key expiration. 2017-08-03 22:20:02 +00:00
config.h If writing a heartbeat message fails, retry after MIN_HEARTBEAT_PERIOD. 2017-07-12 03:08:04 +00:00
confparse.c Delete useless checks in confparse.c 2017-05-02 16:12:30 -04:00
confparse.h Add support for %include funcionality on torrc #1922 2017-05-18 23:44:16 +01:00
connection_edge.c prop224: Connect to v3 services in connection_ap_handle_onion(). 2017-08-24 13:03:28 -04:00
connection_edge.h prop224: Refactor parse_extended_hostname() to parse v3 addrs. 2017-08-19 16:42:26 +03:00
connection_or.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
connection_or.h Merge branch 'maint-0.3.0' 2017-06-05 15:52:06 -04:00
connection.c conn: Add a function to return a list of connection by state 2017-08-24 13:03:28 -04:00
connection.h conn: Add a function to return a list of connection by state 2017-08-24 13:03:28 -04:00
conscache.c Move stub accessor functions a level higher, to consdiffmgr 2017-05-15 17:21:55 -04:00
conscache.h Move stub accessor functions a level higher, to consdiffmgr 2017-05-15 17:21:55 -04:00
consdiff.c Request (and try to use) consensus diffs. 2017-05-04 08:37:41 -04:00
consdiff.h Request (and try to use) consensus diffs. 2017-05-04 08:37:41 -04:00
consdiffmgr.c Fix a memory leak in consdiffmgr.c 2017-08-08 09:13:45 -04:00
consdiffmgr.h Set published_out for consensus cache entries in spooled_resource_estimate_size(). 2017-06-27 18:25:48 -04:00
control.c prop224: Refactor parse_extended_hostname() to parse v3 addrs. 2017-08-19 16:42:26 +03:00
control.h Add regression test for #22304 2017-04-24 09:20:59 -04:00
cpuworker.c Merge branch 'maint-0.3.1' 2017-07-27 16:30:52 -04:00
cpuworker.h Queue consensus diffs at LOW priority. 2017-07-27 16:28:59 -04:00
dircollate.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
dircollate.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
directory.c test: Add tests for fetching descs and handling SOCKS conns. 2017-08-24 13:03:28 -04:00
directory.h test: Add tests for fetching descs and handling SOCKS conns. 2017-08-24 13:03:28 -04:00
dirserv.c Merge remote-tracking branch 'public/bug20270_029' into maint-0.3.0 2017-08-01 11:24:02 -04:00
dirserv.h Store the sha3 of a networkstatus as part of the networkstatus_t 2017-05-04 08:37:41 -04:00
dirvote.c rephist: Remove unused crypto_pk statistics. 2017-07-13 20:24:48 +00:00
dirvote.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
dns_structs.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
dns.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
dns.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
dnsserv.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
dnsserv.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
entrynodes.c general formatting / whitespace / typo fixes 2017-07-01 17:56:06 -04:00
entrynodes.h Merge branch 'maint-0.3.0' into maint-0.3.1 2017-06-29 15:57:48 -04:00
ext_orport.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
ext_orport.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
fallback_dirs.inc Update fallback directory mirrors in May 2017 2017-05-16 19:02:42 +10:00
fp_pair.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fp_pair.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
geoip.c Merge branch 'maint-0.2.4' into maint-0.2.5 2017-06-05 14:38:54 -04:00
geoip.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
hibernate.c Merge branch 'maint-0.2.9' into maint-0.3.0 2017-08-01 11:23:00 -04:00
hibernate.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
hs_cache.c hs: Fix comment of the get max size descriptor function 2017-08-24 13:03:28 -04:00
hs_cache.h prop224: Add client-side HS descriptor cache. 2017-08-24 13:03:27 -04:00
hs_cell.c prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_cell.h prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_circuit.c prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_circuit.h prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_circuitmap.c hs: Add service-side circuitmap API. 2017-04-13 14:23:51 -04:00
hs_circuitmap.h hs: Add service-side circuitmap API. 2017-04-13 14:23:51 -04:00
hs_client.c prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_client.h prop224: Build INTRODUCE1 cell and send logic 2017-08-24 13:03:28 -04:00
hs_common.c prop224: Make lspecs to extend info public 2017-08-24 13:03:28 -04:00
hs_common.h prop224: Make lspecs to extend info public 2017-08-24 13:03:28 -04:00
hs_config.c prop224: Move service version into config object 2017-07-13 16:50:09 -04:00
hs_config.h prop224: Configure v3 service from options 2017-07-13 16:49:44 -04:00
hs_descriptor.c hs: Move link specifier encoding to a function 2017-08-24 13:03:28 -04:00
hs_descriptor.h hs: Move link specifier encoding to a function 2017-08-24 13:03:28 -04:00
hs_ident.c prop224: Helper function to assert on invalid client intro circuit 2017-08-24 13:03:28 -04:00
hs_ident.h prop224: Helper function to assert on invalid client intro circuit 2017-08-24 13:03:28 -04:00
hs_intropoint.c Merge branch 'ticket20657_nickm_bugfixes_squashed' 2017-08-08 20:31:57 -04:00
hs_intropoint.h Rename some free() functions that are actually clear(). 2017-08-08 20:29:34 -04:00
hs_ntor.c Explicit length checks in create_rend_cpath(). 2017-07-07 11:12:27 -04:00
hs_ntor.h Fix wide lines 2017-07-07 11:15:27 -04:00
hs_service.c prop224: Recompute all HSDir indices when we enter overlap mode. 2017-08-19 16:29:23 +03:00
hs_service.h prop224: Improve descriptor reupload logic. 2017-08-19 16:28:48 +03:00
include.am prop224: Circuit has opened and ESTABLISH_INTRO cell 2017-08-08 20:29:33 -04:00
keypin.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
keypin.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
main.c prop224: Add client-side HS descriptor cache. 2017-08-24 13:03:27 -04:00
main.h clang-i386: use house style for public-when-testing variables 2017-05-08 15:38:05 -04:00
Makefile.nmake Netflow record collapsing defense. 2017-05-08 13:49:21 -04:00
microdesc.c general formatting / whitespace / typo fixes 2017-07-01 17:56:06 -04:00
microdesc.h Merge branch 'spooling_squashed' 2017-03-28 19:55:18 +02:00
networkstatus.c Improve code based on Nick review: 2017-08-08 20:29:34 -04:00
networkstatus.h Don't set HSDir index if we don't have a live consensus. 2017-08-08 20:29:34 -04:00
nodelist.c prop224: Recompute all HSDir indices when we enter overlap mode. 2017-08-19 16:29:23 +03:00
nodelist.h prop224: Recompute all HSDir indices when we enter overlap mode. 2017-08-19 16:29:23 +03:00
ntmain.c Handle CMD_KEY_EXPIRATION in ntmain.c switch statement 2017-08-04 12:00:51 -04:00
ntmain.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_fast.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_fast.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_ntor.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_ntor.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_tap.c Rename the hybrid_encrypt/decrypt functions; label them as dangerous 2017-07-24 14:34:53 -04:00
onion_tap.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
or.h prop224: Add the dir purpose HAS_FETCHED 2017-08-24 13:03:28 -04:00
parsecommon.c Extract intro point onion key even with multiple types. 2017-08-08 20:29:34 -04:00
parsecommon.h Extract intro point onion key even with multiple types. 2017-08-08 20:29:34 -04:00
periodic.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
periodic.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
policies.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
policies.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
protover.c Dircache protocol version 2 adds support for diffs 2017-05-15 17:53:36 -04:00
protover.h nodelist: Make HSv3 protover magic numbers a bit more readable. 2017-06-28 18:32:32 +03:00
reasons.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
reasons.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
relay.c Remove an XXXX RD comment that neither Roger or I understand. Closes 22420 2017-06-19 14:06:07 -04:00
relay.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
rendcache.c prop224: Refactor parse_extended_hostname() to parse v3 addrs. 2017-08-19 16:42:26 +03:00
rendcache.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
rendclient.c prop224: Refactor pick_hsdir() to be used by both v2 and v3. 2017-08-24 13:03:28 -04:00
rendclient.h prop224: Move some rendclient.c code to hs_common.c 2017-08-24 13:03:27 -04:00
rendcommon.c prop224: Helper function to assert on invalid client intro circuit 2017-08-24 13:03:28 -04:00
rendcommon.h prop224: Helper function to assert on invalid client intro circuit 2017-08-24 13:03:28 -04:00
rendmid.c rephist: Remove unused crypto_pk statistics. 2017-07-13 20:24:48 +00:00
rendmid.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
rendservice.c prop224: Refactor parse_extended_hostname() to parse v3 addrs. 2017-08-19 16:42:26 +03:00
rendservice.h hs: Rename num_rend_services() 2017-08-08 20:29:34 -04:00
rephist.c rephist: Remove unused crypto_pk statistics. 2017-07-13 20:24:48 +00:00
rephist.h rephist: Remove unused crypto_pk statistics. 2017-07-13 20:24:48 +00:00
replaycache.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
replaycache.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
router.c Merge branch 'bug22885_squashed' 2017-08-03 09:33:40 -04:00
router.h Remove obsolete authdir_mode_any_nonhidserv() 2017-06-21 13:49:17 -04:00
routerkeys.c routerkeys: Add cmdline option for learning signing key expiration. 2017-08-03 22:20:02 +00:00
routerkeys.h routerkeys: Add cmdline option for learning signing key expiration. 2017-08-03 22:20:02 +00:00
routerlist.c Raise MIN_DL_PER_REQUEST to 32 2017-08-11 13:54:01 -04:00
routerlist.h Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value 2017-05-10 20:03:07 -04:00
routerparse.c Merge branch 'ticket20657_nickm_bugfixes_squashed' 2017-08-08 20:31:57 -04:00
routerparse.h bug#22143/prop#140: identify input diffs by their digest-as-signed 2017-05-03 13:09:08 -04:00
routerset.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
routerset.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
scheduler.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
scheduler.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
shared_random_state.c sr: Log voting schedule at debug level 2017-08-19 16:20:07 +03:00
shared_random_state.h prop224 tests: Improve SRV protocol tests. 2017-08-08 20:29:35 -04:00
shared_random.c Don't set HSDir index if we don't have a live consensus. 2017-08-08 20:29:34 -04:00
shared_random.h Don't set HSDir index if we don't have a live consensus. 2017-08-08 20:29:34 -04:00
statefile.c Merge branch 'ticket20657_nickm_bugfixes_squashed' 2017-08-08 20:31:57 -04:00
statefile.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
status.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
status.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
tor_main.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
torcert.c Bug 23055: cast, then multiply when doing u32*u32->u64. 2017-07-28 10:33:51 -04:00
torcert.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
transports.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
transports.h Run the copyright update script. 2017-03-15 16:13:17 -04:00