summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-10 12:05:50 -0500
committerNick Mathewson <nickm@torproject.org>2017-03-10 12:05:50 -0500
commit16b64fcfe178704ab09ba317f4c6e834f46b75e8 (patch)
tree39be2aa4b634c40902d9f5712a17d914d5a8eeb9 /src/or/dirserv.c
parent118d7018d07ebc6324e8b7220002465479b0cbf3 (diff)
downloadtor-16b64fcfe178704ab09ba317f4c6e834f46b75e8.tar.gz
tor-16b64fcfe178704ab09ba317f4c6e834f46b75e8.zip
Mark GETINFO network-status as deprecated with a warning
control-spec has marked it deprecated for a long time. Closes ticket 21703.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index f01668adcb..0b9504c27b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -814,6 +814,9 @@ directory_remove_invalid(void)
* Allocate and return a description of the status of the server <b>desc</b>,
* for use in a v1-style router-status line. The server is listed
* as running iff <b>is_live</b> is true.
+ *
+ * This is deprecated: it's only used for controllers that want outputs in
+ * the old format.
*/
static char *
list_single_server_status(const routerinfo_t *desc, int is_live)
@@ -926,6 +929,9 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
* *<b>router_status_out</b>. Return 0 on success, -1 on failure.
*
* If for_controller is true, include the routers with very old descriptors.
+ *
+ * This is deprecated: it's only used for controllers that want outputs in
+ * the old format.
*/
int
list_server_status_v1(smartlist_t *routers, char **router_status_out,