diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-08 00:15:40 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-08 00:15:40 +0000 |
commit | 6e22801e0f36463f0d037212e1992c103f8dfc3d (patch) | |
tree | 21942c45fea68f4e709785d6cd415531bf976350 /src/or | |
parent | 20f11f1800f6269914e6dc95b97ab9310603ca6a (diff) | |
download | tor-6e22801e0f36463f0d037212e1992c103f8dfc3d.tar tor-6e22801e0f36463f0d037212e1992c103f8dfc3d.tar.gz |
when you get a desc from an unknown router, log its fingerprint
svn:r1244
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirserv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 69446d6b7..6966f3fe4 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -228,7 +228,13 @@ dirserv_add_descriptor(const char **desc) r = dirserv_router_fingerprint_is_known(ri); if(r<1) { if(r==0) { + char fp[FINGERPRINT_LEN+1]; log_fn(LOG_WARN, "Unknown nickname %s. Not adding.", ri->nickname); + if (crypto_pk_get_fingerprint(ri->identity_pkey, fp) < 0) { + log_fn(LOG_WARN, "Error computing fingerprint for %s", ri->nickname); + } else { + log_fn(LOG_WARN, "Fingerprint line: %s %s", ri->nickname, fp); + } } else { log_fn(LOG_WARN, "Known nickname %s, wrong fingerprint. Not adding.", ri->nickname); } |