summaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-02-07 13:29:26 +0100
committerSebastian Hahn <sebastian@torproject.org>2015-02-15 12:33:20 +0100
commit8feaf3846d67d80d6a1bae9867cdf55bafdc437e (patch)
tree14927a15ed6a7291f972e36a05516ed5f6d81e75 /src/or/router.h
parentb101f4e98ce811aee729c31f62ec5dd1cfe44e85 (diff)
downloadtor-8feaf3846d67d80d6a1bae9867cdf55bafdc437e.tar.gz
tor-8feaf3846d67d80d6a1bae9867cdf55bafdc437e.zip
Refactor router_rebuild_descriptor
Allow building a router descriptor without storing it to global state. This is in preparation of a patch to export the created descriptors via the control port.
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 8108ffb22f..73b43bc751 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -89,6 +89,7 @@ const uint8_t *router_get_my_id_digest(void);
int router_extrainfo_digest_is_me(const char *digest);
int router_is_me(const routerinfo_t *router);
int router_pick_published_address(const or_options_t *options, uint32_t *addr);
+int router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e);
int router_rebuild_descriptor(int force);
char *router_dump_router_to_string(routerinfo_t *router,
crypto_pk_t *ident_key);