From d88f10cdf2cc0682e607de5f63ebae9370c5fe55 Mon Sep 17 00:00:00 2001 From: Alexander Færøy Date: Fri, 10 Mar 2017 12:56:36 +0100 Subject: 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 --- src/or/router.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/router.h') 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); -- cgit v1.2.3-54-g00ecf