aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-03-10 13:00:20 +0100
committerNick Mathewson <nickm@torproject.org>2017-03-17 11:15:43 -0400
commit853b54dea4c56ea2913caf58ad6d337502b18b91 (patch)
tree4814ecab621c193bf81a2b3cb8940123d8bbf392 /src/or/router.h
parentd88f10cdf2cc0682e607de5f63ebae9370c5fe55 (diff)
downloadtor-853b54dea4c56ea2913caf58ad6d337502b18b91.tar.gz
tor-853b54dea4c56ea2913caf58ad6d337502b18b91.zip
Add periodic timer for expiring old onion keys.
This patch adds a new timer that is executed when it is time to expire our current set of old onion keys. Because of proposal #274 this can no longer be assumed to be at the same time we rotate our onion keys since they will be updated less frequently. See: https://bugs.torproject.org/21641
Diffstat (limited to 'src/or/router.h')
-rw-r--r--src/or/router.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.h b/src/or/router.h
index 55a3927998..a02488f37a 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -27,6 +27,7 @@ crypto_pk_t *get_my_v3_authority_signing_key(void);
authority_cert_t *get_my_v3_legacy_cert(void);
crypto_pk_t *get_my_v3_legacy_signing_key(void);
void dup_onion_keys(crypto_pk_t **key, crypto_pk_t **last);
+void expire_old_onion_keys(void);
void rotate_onion_key(void);
crypto_pk_t *init_key_from_file(const char *fname, int generate,
int severity, int log_greeting);