tor/src/or
Alexander Færøy d88f10cdf2 Add API to query the current onion key grace period.
This patch adds an API to get the current grace period, in days, defined
as the consensus parameter "onion-key-grace-period-days".

As per proposal #274 the values for "onion-key-grace-period-days" is a
default value of 7 days, a minimum value of 1 day, and a maximum value
defined by other consensus parameter "onion-key-rotation-days" also
defined in days.

See: https://bugs.torproject.org/21641
2017-03-17 11:15:43 -04:00
..
addressmap.c Comment the heck out of the stream/circuit attaching process. 2016-10-27 12:04:43 -04:00
addressmap.h Update the copyright year. 2016-02-27 18:48:19 +01:00
bridges.c Fix failing bridges+ipv6-min integration test. 2017-03-09 09:19:19 -05:00
bridges.h Change approach to preventing duplicate guards. 2017-02-28 08:16:33 -05:00
buffers.c Merge branch 'disable_memory_sentinels_squashed' 2017-02-27 16:25:25 -05:00
buffers.h Merge branch 'bug20894_029_v3' 2017-02-14 19:10:20 -05:00
channel.c Remove the (no longer compiled) code for legacy guard selection. 2017-01-18 15:27:10 -05:00
channel.h Propagate Ed25519 identities downwards into more functions. 2016-12-08 16:47:58 -05:00
channeltls.c Merge branch 'prop271_030_v1_squashed' 2016-12-16 11:20:59 -05:00
channeltls.h Add "Ed ID" arguments to a bunch of connection-ID-related fns. 2016-11-03 08:37:22 -04:00
circpathbias.c Remove the (no longer compiled) code for legacy guard selection. 2017-01-18 15:27:10 -05:00
circpathbias.h Update the copyright year. 2016-02-27 18:48:19 +01:00
circuitbuild.c Merge remote-tracking branch 'public/bug21407' 2017-02-28 11:17:30 -05:00
circuitbuild.h Merge branch 'prop271_030_v1_squashed' 2016-12-16 11:20:59 -05:00
circuitlist.c Correctly maintain circuits in circuits_pending_other_guards(). 2017-01-17 13:26:59 +02:00
circuitlist.h circuit: Add a function to get the next service intro circuit 2016-12-21 15:00:19 -05:00
circuitmux_ewma.c Fix ewma_cmp_cmux never considering policies different 2016-10-25 10:07:05 -04:00
circuitmux_ewma.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
circuitmux.c Turn circuitmux.c comments into module docs. 2016-10-18 11:17:34 -04:00
circuitmux.h Update the copyright year. 2016-02-27 18:48:19 +01:00
circuitstats.c circuit: Make circuit_build_times_disabled take an or_options_t 2017-01-18 12:53:01 -05:00
circuitstats.h circuit: Make circuit_build_times_disabled take an or_options_t 2017-01-18 12:53:01 -05:00
circuituse.c Fix a function name in a comment. Closes 21580 2017-03-06 11:27:50 -05:00
circuituse.h Merge branch 'prop271_030_v1_squashed' 2016-12-16 11:20:59 -05:00
command.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
command.h Update the copyright year. 2016-02-27 18:48:19 +01:00
config.c Make MAX_DIR_PERIOD independent of MIN_ONION_KEY_LIFETIME. 2017-03-10 13:04:43 +01:00
config.h Merge remote-tracking branch 'public/spaces_in_unix_addrs' 2016-10-14 10:21:41 -04:00
confparse.c Make "GETCONF SocksPort" work again 2017-01-30 10:09:47 -05:00
confparse.h Log a warning when Testing options are deprecated. 2016-08-19 20:21:04 -04:00
connection_edge.c Merge branch 'maint-0.3.0' 2017-03-04 20:24:02 -05:00
connection_edge.h hs: Log if service can't connect to application 2017-01-13 12:10:53 -05:00
connection_or.c Remove the (no longer compiled) code for legacy guard selection. 2017-01-18 15:27:10 -05:00
connection_or.h Rename connection_or_remove_from_identity_map 2016-12-08 16:47:57 -05:00
connection.c Bulletproof conn_get_outbound_address() a little. 2017-01-27 08:12:14 -05:00
connection.h Add connection_is_moribund() inline 2016-08-20 03:34:16 +00:00
control.c Merge remote-tracking branch 'meejah/ticket-21329-onions-current' 2017-02-16 09:40:56 -05:00
control.h Ticket #21329: GETINFO onions/current returns empty list 2017-01-28 13:59:29 -07:00
cpuworker.c Actually free the worker_state_t object when we do an update with it 2016-10-31 15:20:25 -04:00
cpuworker.h Update the copyright year. 2016-02-27 18:48:19 +01:00
dircollate.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
dircollate.h Merge branch 'maint-0.2.7' 2016-03-21 13:26:04 -04:00
directory.c Merge branch 'maint-0.3.0' 2017-02-27 11:03:25 -05:00
directory.h Restrict fuzzing to the directory headers 2017-01-30 08:37:23 -05:00
dirserv.c Remove fgets() compatbility function and related tests. 2017-03-09 00:10:18 +01:00
dirserv.h Propagate Ed25519 identities downwards into more functions. 2016-12-08 16:47:58 -05:00
dirvote.c Merge branch 'maint-0.2.9' 2017-02-15 07:48:42 -05:00
dirvote.h Add consensus weight calculation tests 2016-10-26 16:37:16 -04:00
dns_structs.h Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
dns.c Merge branch 'bug19769_19025_029' 2017-01-18 09:02:48 -05:00
dns.h DefecTor countermeasure: change server- and client-side DNS TTL clipping 2017-01-18 08:55:57 -05:00
dnsserv.c Merge branch 'maint-0.2.5' into maint-0.2.6 2017-02-07 10:37:53 -05:00
dnsserv.h Update the copyright year. 2016-02-27 18:48:19 +01:00
entrynodes.c Revert "Restore correct behavior of 0.3.0.4-rc with bridges+ipv6-min" 2017-03-09 09:19:12 -05:00
entrynodes.h Don't build circuits till primary guards have descriptors 2017-01-31 12:31:43 -05:00
ext_orport.c Module-level docs for ext_orport and router.c 2016-10-18 19:32:49 -04:00
ext_orport.h Update the copyright year. 2016-02-27 18:48:19 +01:00
fallback_dirs.inc Update the fallback directory mirror list in December 2016 2016-12-19 15:44:20 +11:00
fp_pair.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
fp_pair.h Update the copyright year. 2016-02-27 18:48:19 +01:00
geoip.c Remove fgets() compatbility function and related tests. 2017-03-09 00:10:18 +01:00
geoip.h Update the copyright year. 2016-02-27 18:48:19 +01:00
hibernate.c Replace "people" with the appropriate network component in comments 2016-12-12 09:50:21 -05:00
hibernate.h Update the copyright year. 2016-02-27 18:48:19 +01:00
hs_cache.c Merge remote-tracking branch 'asn/bug20852_v1' 2017-01-11 10:14:50 -05:00
hs_cache.h Max HS descriptor size is now 50kb and also consensus param. 2017-01-09 15:02:56 +02:00
hs_circuitmap.c Fix a few clang warnings. 2016-12-14 16:01:27 -05:00
hs_circuitmap.h Fix double-typedef of or_circuit_t. 2016-12-14 16:46:54 -05:00
hs_common.c whitespace fix 2016-12-23 10:46:14 -05:00
hs_common.h Merge remote-tracking branch 'dgoulet/bug19899_030_01' 2016-12-23 08:28:05 -05:00
hs_descriptor.c Merge branch 'bug20569_030_02_squashed' 2017-01-11 12:52:52 -05:00
hs_descriptor.h Merge branch 'bug20569_030_02_squashed' 2017-01-11 12:52:52 -05:00
hs_intropoint.c whitespace fixes 2017-01-18 17:14:42 -05:00
hs_intropoint.h prop224: Add unit tests for INTRODUCE1 support 2017-01-18 16:58:54 -05:00
hs_service.c test: fix the generate ESTABLISH_INTRO v3 cell 2016-12-16 12:21:07 -05:00
hs_service.h whitespace fixes 2016-12-14 15:41:08 -05:00
include.am Merge branch 'prop271_030_v1_squashed' 2016-12-16 11:20:59 -05:00
keypin.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
keypin.h Update the copyright year. 2016-02-27 18:48:19 +01:00
main.c Make MIN_ONION_KEY_LIFETIME a consensus parameter defined value. 2017-03-17 11:15:43 -04:00
main.h Merge branch 'maint-0.2.8' into maint-0.2.9 2016-11-03 15:44:46 -04:00
Makefile.nmake Implement scheduler mechanism to track lists of channels wanting cells or writes; doesn't actually drive the cell flow from it yet 2014-09-30 22:48:24 -07:00
microdesc.c simplify we_use_microdescriptors_for_circuits() 2016-10-02 02:22:03 -04:00
microdesc.h Add unit tests for networkstatus_consensus_is_bootstrapping 2016-05-19 07:58:41 -04:00
networkstatus.c Fix a pair of compilation errors. 2017-01-30 08:37:27 -05:00
networkstatus.h Fix a pair of compilation errors. 2017-01-30 08:37:27 -05:00
nodelist.c Don't build circuits till primary guards have descriptors 2017-01-31 12:31:43 -05:00
nodelist.h Merge branch 'feature15056_v1_squashed' 2016-12-08 16:49:24 -05:00
ntmain.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
ntmain.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_fast.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_fast.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_ntor.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_ntor.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_tap.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_tap.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion.c Adding some assertions to onion.c 2016-12-08 16:48:01 -05:00
onion.h Migrate extend2/create2 cell encoding to Trunnel 2016-11-11 15:29:13 -05:00
or.h Add API to query the current onion key grace period. 2017-03-17 11:15:43 -04:00
parsecommon.c Merge branch 'maint-0.2.9' 2016-12-19 08:03:17 -05:00
parsecommon.h Make outter (plaintext) layer of HS desc conform to prop224. 2016-12-23 15:07:21 +02:00
periodic.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
periodic.h Update the copyright year. 2016-02-27 18:48:19 +01:00
policies.c Merge branch 'maint-0.2.9' 2017-02-15 07:48:42 -05:00
policies.h Fix policies.c instance of the "if (r=(a-b)) return r" pattern 2017-02-14 16:31:11 -05:00
protover.c protover: Add new version for prop224 for HSIntro/HSDir 2017-02-14 10:51:18 -05:00
protover.h Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
reasons.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
reasons.h Update the copyright year. 2016-02-27 18:48:19 +01:00
relay.c Save number of sent/received RELAY_DATA cells for directory connections. 2017-02-16 15:11:53 +00:00
relay.h prop224: Add unit tests for INTRODUCE1 support 2017-01-18 16:58:54 -05:00
rendcache.c Merge branch 'maint-0.2.6' into maint-0.2.7 2016-12-20 18:14:21 -05:00
rendcache.h prop224: Directory cache support 2016-11-04 10:31:35 -04:00
rendclient.c Use the new guard notification/selection APIs throughout Tor 2016-11-30 14:42:53 -05:00
rendclient.h Merge branch 'ticket17238_029_02-resquash' 2016-11-04 13:26:37 -04:00
rendcommon.c prop224: Add INTRODUCE1 cell relay support 2017-01-18 16:58:33 -05:00
rendcommon.h Merge branch 'ticket17238_029_02-resquash' 2016-11-04 13:26:37 -04:00
rendmid.c hs: Rename rend_mid_introduce() with legacy semantic 2017-01-18 16:58:34 -05:00
rendmid.h hs: Rename rend_mid_introduce() with legacy semantic 2017-01-18 16:58:34 -05:00
rendservice.c Merge branch 'maint-0.3.0' 2017-03-07 08:08:28 -05:00
rendservice.h hs: Fix bad use of sizeof() when encoding ESTABLISH_INTRO legacy cell 2017-02-24 11:36:36 -05:00
rephist.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
rephist.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
replaycache.c Turn replaycache.c module doc into doxygen 2016-10-18 12:31:50 -04:00
replaycache.h Update the copyright year. 2016-02-27 18:48:19 +01:00
router.c Add API to query the current onion key grace period. 2017-03-17 11:15:43 -04:00
router.h Add API to query the current onion key grace period. 2017-03-17 11:15:43 -04:00
routerkeys.c Merge branch 'combined-fuzzing-v4' 2017-01-30 08:40:46 -05:00
routerkeys.h Make a bunch of signature/digest-checking functions mockable 2017-01-30 08:37:22 -05:00
routerlist.c Merge branch 'maint-0.2.9' 2017-02-15 07:48:42 -05:00
routerlist.h Remove AuthDirMaxServersPerAuthAddr 2016-12-13 13:09:27 -05:00
routerparse.c Merge remote-tracking branch 'teor/bug21507-029' 2017-02-28 11:19:24 -05:00
routerparse.h Merge branch 'maint-0.2.9' 2017-02-15 07:48:42 -05:00
routerset.c Add some needed accessors/inspectors for bridge/guard convergence 2016-12-16 11:06:18 -05:00
routerset.h Add some needed accessors/inspectors for bridge/guard convergence 2016-12-16 11:06:18 -05:00
scheduler.c Whitespace fixes 2016-10-26 08:39:04 -04:00
scheduler.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
shared_random_state.c Merge remote-tracking branch 'public/deprecation_v2' 2016-08-19 19:58:51 -04:00
shared_random_state.h Keep make check-spaces happy 2016-07-01 21:52:32 +00:00
shared_random.c control: Add GETINFO command for the shared random values 2017-01-09 11:33:05 -05:00
shared_random.h control: Add GETINFO command for the shared random values 2017-01-09 11:33:05 -05:00
statefile.c Make new prop271 entry guards persistent 2016-11-30 14:44:43 -05:00
statefile.h Update the copyright year. 2016-02-27 18:48:19 +01:00
status.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
status.h Update the copyright year. 2016-02-27 18:48:19 +01:00
tor_main.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
torcert.c Merge remote-tracking branch 'dgoulet/ticket20568_030_01' 2016-12-01 09:23:36 -05:00
torcert.h Move encode_cert to torcert.c and rename it to tor_cert_encode_ed22519() 2016-11-10 11:00:50 -05:00
transports.c Remove extra newline from proxy_prepare_for_restart definition 2017-01-19 08:12:26 -05:00
transports.h Update the copyright year. 2016-02-27 18:48:19 +01:00