diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-05-02 21:22:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-05-02 21:22:31 +0000 |
commit | 69dc4e167554d3db4f016a5f9d8b9f9b2dc5a6f2 (patch) | |
tree | 71d2d9498c77364972b560865fe10382b19d12d7 /src/or/router.c | |
parent | be4a4965270d0b3b410927976966adc45eed6c16 (diff) | |
download | tor-69dc4e167554d3db4f016a5f9d8b9f9b2dc5a6f2.tar.gz tor-69dc4e167554d3db4f016a5f9d8b9f9b2dc5a6f2.zip |
Remove support for looking at old directory/routerdesc elements; mark non-new elements optional; switch to new format for dir-signing-key; start accepting newer elements so we can mark them as non-opt later; make tor-spec say the right stuff.
svn:r4154
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c index dc61dea58f..365de0f0e5 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -814,9 +814,9 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, if (router->declared_family && smartlist_len(router->declared_family)) { size_t n; char *s = smartlist_join_strings(router->declared_family, " ", 0, &n); - n += strlen("opt family ") + 2; /* 1 for \n, 1 for \0. */ + n += strlen("family ") + 2; /* 1 for \n, 1 for \0. */ family_line = tor_malloc(n); - tor_snprintf(family_line, n, "opt family %s\n", s); + tor_snprintf(family_line, n, "family %s\n", s); tor_free(s); } else { family_line = tor_strdup(""); @@ -828,7 +828,7 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, "platform %s\n" "published %s\n" "opt fingerprint %s\n" - "opt uptime %ld\n" + "uptime %ld\n" "bandwidth %d %d %d\n" "onion-key\n%s" "signing-key\n%s%s%s%s", @@ -857,7 +857,7 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, written = result; if (get_options()->ContactInfo && strlen(get_options()->ContactInfo)) { - result = tor_snprintf(s+written,maxlen-written, "opt contact %s\n", + result = tor_snprintf(s+written,maxlen-written, "contact %s\n", get_options()->ContactInfo); if (result<0) return -1; |