tor/src/or
David Goulet 72c7f81459 prop224: When computing hsdir index and time period, use valid_after time
Use the valid_after time from the consensus to get the time period number else
we might get out of sync with the overlap period that uses valid_after.

Make it an optional feature since some functions require passing a
specific time (like hs_get_start_time_of_next_time_period()).

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-09-07 18:16:07 +03: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
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 Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -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 prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04:00
circuitbuild.h Explicit length checks in circuit_init_cpath_crypto(). 2017-07-07 11:12:27 -04:00
circuitlist.c prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04:00
circuitlist.h prop224: Use the client-side circuitmap in hs_client.c 2017-08-24 13:03:28 -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 Don't use "0" as a "base" argument to tor_parse_*(). 2017-08-28 10:21:29 -04:00
circuitstats.h Merge branch 'maint-0.3.0' 2017-05-18 10:06:27 -04:00
circuituse.c prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04:00
circuituse.h prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -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 Merge branch 'http_tunnel_squashed' 2017-09-05 14:34:29 -04: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 Resolve inconsistencies between buf refactor and HTTP connect 2017-09-05 14:41:35 -04:00
connection_edge.h Merge branch 'http_tunnel_squashed' 2017-09-05 14:34:29 -04:00
connection_or.c Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -04:00
connection_or.h Merge branch 'maint-0.3.0' 2017-06-05 15:52:06 -04:00
connection.c Merge branch 'http_tunnel_squashed' 2017-09-05 14:34:29 -04:00
connection.h Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -04:00
conscache.c 22752: Improve comments to explain why we're doing this fix. 2017-09-04 11:54:49 -04:00
conscache.h On windows, allow many entries in conscache directories 2017-08-29 13:03:36 -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 On windows, allow many entries in conscache directories 2017-08-29 13:03:36 -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 Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -04: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 Make url-canonicalizer canonicalize correctly. 2017-09-05 15:02:16 -04:00
directory.h Merge branch 'http_tunnel_squashed' 2017-09-05 14:34:29 -04:00
dirserv.c Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -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 Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -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 'bug19418_029' into maint-0.3.1 2017-08-25 11:38:24 -04:00
hibernate.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
hs_cache.c prop224: Update OOM counters when storing a client descriptor cache object 2017-08-24 13:03:28 -04:00
hs_cache.h prop224: Add a client intro point state cache 2017-08-24 13:03:28 -04:00
hs_cell.c prop224: Add a function to clear INTRO data 2017-08-24 13:03:28 -04:00
hs_cell.h prop224: Add a function to clear INTRO data 2017-08-24 13:03:28 -04:00
hs_circuit.c prop224: Register RP circuit when it opens 2017-08-24 13:03:29 -04:00
hs_circuit.h prop224: Build ESTABLISH_RENDEZVOUS cell and logic 2017-08-24 13:03:28 -04:00
hs_circuitmap.c prop224: Register RP circuit when it opens 2017-08-24 13:03:29 -04:00
hs_circuitmap.h prop224: Add client-side rend circuit support to HS circuitmap 2017-08-24 13:03:28 -04:00
hs_client.c prop224: When computing hsdir index and time period, use valid_after time 2017-09-07 18:16:07 +03:00
hs_client.h hs: Implement an HS client free all function 2017-08-29 16:02:13 -04:00
hs_common.c prop224: When computing hsdir index and time period, use valid_after time 2017-09-07 18:16:07 +03: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 test: Fix memory leak in hs_descriptor/decode_bad_signature 2017-09-05 09:26:21 -04:00
hs_descriptor.h test: Fix memory leak in hs_descriptor/decode_bad_signature 2017-09-05 09:26:21 -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: When computing hsdir index and time period, use valid_after time 2017-09-07 18:16:07 +03:00
hs_service.h Merge remote-tracking branch 'asn/bug23346' 2017-09-04 12:30:51 -04:00
include.am Move buffers.c and buffers_tls.c into src/common 2017-09-05 13:57:51 -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 Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -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 Merge branch 'http_tunnel_squashed' 2017-09-05 14:34:29 -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: When computing hsdir index and time period, use valid_after time 2017-09-07 18:16:07 +03:00
nodelist.h prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04: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 Fix ntohs() that should have been htons() 2017-08-04 12:17:53 -04:00
onion.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
or.h Merge branch 'bug23361_032_01_squashed2' 2017-09-07 08:35:35 -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
proto_cell.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_cell.h Move protocol-specific functions out of buffers.c 2017-09-05 13:57:51 -04:00
proto_control0.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_control0.h Move protocol-specific functions out of buffers.c 2017-09-05 13:57:51 -04:00
proto_ext_or.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_ext_or.h Make buffers.c independent of or.h 2017-09-05 13:57:51 -04:00
proto_http.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_http.h Move protocol-specific functions out of buffers.c 2017-09-05 13:57:51 -04:00
proto_socks.c Repair buffer API so everything starts with buf_. 2017-09-05 13:57:51 -04:00
proto_socks.h Move protocol-specific functions out of buffers.c 2017-09-05 13:57:51 -04:00
protover.c Dircache protocol version 2 adds support for diffs 2017-05-15 17:53:36 -04:00
protover.h prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04:00
reasons.c Add support for HTTP Connect tunnels 2017-09-05 14:34:09 -04:00
reasons.h Add support for HTTP Connect tunnels 2017-09-05 14:34:09 -04:00
relay.c Merge branch 'maint-0.3.1' 2017-09-07 08:51:16 -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 Merge branch 'maint-0.3.1' 2017-08-25 11:39:38 -04:00
rendclient.h hs: Remove unused rend_client_rendezvous_acked() 2017-08-24 13:03:28 -04:00
rendcommon.c Merge branch 'maint-0.3.1' 2017-08-25 11:39:38 -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 hs: Set rendezvous circuit timestamp_dirty all the time 2017-08-31 11:40:22 -04:00
rendservice.h hs: Rename num_rend_services() 2017-08-08 20:29:34 -04:00
rephist.c Apply ahf's ceil_div.cocci patch. 2017-08-24 15:33:27 -04: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 'maint-0.3.1' 2017-08-25 11:39:38 -04:00
router.h Remove obsolete authdir_mode_any_nonhidserv() 2017-06-21 13:49:17 -04:00
routerkeys.c Merge branch 'maint-0.3.1' 2017-08-25 11:39:38 -04:00
routerkeys.h routerkeys: Add cmdline option for learning signing key expiration. 2017-08-03 22:20:02 +00:00
routerlist.c prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -04:00
routerlist.h Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value 2017-05-10 20:03:07 -04:00
routerparse.c prop224: Pick rendezvous point of protover HSRend=2 2017-09-07 08:35:28 -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 Merge remote-tracking branch 'haxxpop/fuzzing-hsv3' 2017-08-28 13:46:24 -04:00
torcert.h Mock rsa_ed25519_crosscert_check 2017-08-13 16:15:40 +07: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