diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-15 12:17:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-15 12:17:23 -0400 |
commit | 0cf327dc7874ae0a021054b78cbb7b24a11aa8fe (patch) | |
tree | 7c07a17e88ebb7b6d979540dc35c2ce9f4fd1bd1 /src/or/router.c | |
parent | e4d2177d31225f5884dd94038b457dfd9954b11b (diff) | |
parent | a4e9d672924f027c3e66220a8f70427d42154fe2 (diff) | |
download | tor-0cf327dc7874ae0a021054b78cbb7b24a11aa8fe.tar.gz tor-0cf327dc7874ae0a021054b78cbb7b24a11aa8fe.zip |
Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/or/router.c b/src/or/router.c index 422fe5db2e..c8c9ce1a4f 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -2983,23 +2983,6 @@ router_get_verbose_nickname(char *buf, const routerinfo_t *router) strlcpy(buf+1+HEX_DIGEST_LEN+1, router->nickname, MAX_NICKNAME_LEN+1); } -/** Set <b>buf</b> (which must have MAX_VERBOSE_NICKNAME_LEN+1 bytes) to the - * verbose representation of the identity of <b>router</b>. The format is: - * A dollar sign. - * The upper-case hexadecimal encoding of the SHA1 hash of router's identity. - * A "=" if the router is named; a "~" if it is not. - * The router's nickname. - **/ -void -routerstatus_get_verbose_nickname(char *buf, const routerstatus_t *router) -{ - buf[0] = '$'; - base16_encode(buf+1, HEX_DIGEST_LEN+1, router->identity_digest, - DIGEST_LEN); - buf[1+HEX_DIGEST_LEN] = router->is_named ? '=' : '~'; - strlcpy(buf+1+HEX_DIGEST_LEN+1, router->nickname, MAX_NICKNAME_LEN+1); -} - /** Forget that we have issued any router-related warnings, so that we'll * warn again if we see the same errors. */ void |