aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/router.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-01-10 19:47:24 +1000
committerteor <teor@torproject.org>2019-02-19 21:41:36 +1000
commitf19b64dce90c082b0e19f059b94c2d42b015a956 (patch)
tree175419de3dbd284d7a0d1febfcda038979920490 /src/feature/relay/router.h
parent6c5a506cdb887a655d8a4654fba5f6ea466aaeae (diff)
downloadtor-f19b64dce90c082b0e19f059b94c2d42b015a956.tar.gz
tor-f19b64dce90c082b0e19f059b94c2d42b015a956.zip
router: refactor router_build_fresh_descriptor() static function interfaces
Tidy the arguments and return values of these functions, and clean up their memory management. Preparation for testing 29017 and 20918.
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r--src/feature/relay/router.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h
index 60bc857ceb..46364206ef 100644
--- a/src/feature/relay/router.h
+++ b/src/feature/relay/router.h
@@ -23,6 +23,7 @@ struct ed25519_keypair_t;
#define TOR_ROUTERINFO_ERROR_DIGEST_FAILED (-4)
#define TOR_ROUTERINFO_ERROR_CANNOT_GENERATE (-5)
#define TOR_ROUTERINFO_ERROR_DESC_REBUILDING (-6)
+#define TOR_ROUTERINFO_ERROR_INTERNAL_BUG (-7)
crypto_pk_t *get_onion_key(void);
time_t get_onion_key_set_at(void);