diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-02-07 13:29:26 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2015-02-15 12:33:20 +0100 |
commit | 8feaf3846d67d80d6a1bae9867cdf55bafdc437e (patch) | |
tree | 14927a15ed6a7291f972e36a05516ed5f6d81e75 /src/or/router.h | |
parent | b101f4e98ce811aee729c31f62ec5dd1cfe44e85 (diff) | |
download | tor-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.h | 1 |
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); |