diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-30 06:27:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-30 06:27:59 +0000 |
commit | 9cec3a13f510f09f328f824796676f24a99ccf35 (patch) | |
tree | 399bc151d8add56eefb4477e5cb384a848dda850 /src/or/connection_or.c | |
parent | a6eb8cd2a0a206c7cc975751044723e4bcc60b7b (diff) | |
download | tor-9cec3a13f510f09f328f824796676f24a99ccf35.tar tor-9cec3a13f510f09f328f824796676f24a99ccf35.tar.gz |
remove some functions that are not used; #if0 out some files that are not likely to be used.
svn:r5471
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index b29a4ae73..a092d3c9e 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -377,40 +377,6 @@ connection_or_get_by_identity_digest(const char *digest) return best; } -/** "update an OR connection nickname on the fly" - * Actually, nobody calls this. Should we remove it? */ -void -connection_or_update_nickname(connection_t *conn) -{ - routerinfo_t *r; - const char *n; - - tor_assert(conn); - tor_assert(conn->type == CONN_TYPE_OR); - n = dirserv_get_nickname_by_digest(conn->identity_digest); - if (n) { - if (!conn->nickname || strcmp(conn->nickname, n)) { - tor_free(conn->nickname); - conn->nickname = tor_strdup(n); - } - return; - } - r = router_get_by_digest(conn->identity_digest); - if (r && r->is_verified) { - if (!conn->nickname || strcmp(conn->nickname, r->nickname)) { - tor_free(conn->nickname); - conn->nickname = tor_strdup(r->nickname); - } - return; - } - if (conn->nickname[0] != '$') { - tor_free(conn->nickname); - conn->nickname = tor_malloc(HEX_DIGEST_LEN+1); - base16_encode(conn->nickname, HEX_DIGEST_LEN+1, - conn->identity_digest, DIGEST_LEN); - } -} - /** Launch a new OR connection to <b>addr</b>:<b>port</b> and expect to * handshake with an OR with identity digest <b>id_digest</b>. * |