diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-03-10 12:56:36 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-17 11:15:43 -0400 |
commit | d88f10cdf2cc0682e607de5f63ebae9370c5fe55 (patch) | |
tree | f250fb219a10a4a546892e991444e4ddb3e435eb /src/or/router.h | |
parent | 23ae5b655b9d94d62c6c9296cb8cc2b33ae345d7 (diff) | |
download | tor-d88f10cdf2cc0682e607de5f63ebae9370c5fe55.tar.gz tor-d88f10cdf2cc0682e607de5f63ebae9370c5fe55.zip |
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
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.h b/src/or/router.h index 9060bc22c9..55a3927998 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -32,6 +32,7 @@ crypto_pk_t *init_key_from_file(const char *fname, int generate, int severity, int log_greeting); void v3_authority_check_key_expiry(void); int get_onion_key_lifetime(void); +int get_onion_key_grace_period(void); di_digest256_map_t *construct_ntor_key_map(void); void ntor_key_map_free(di_digest256_map_t *map); |