[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] when you get a desc from an unknown router, log its fingerp...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] when you get a desc from an unknown router, log its fingerp...
- From: arma@seul.org (Roger Dingledine)
- Date: Sun, 7 Mar 2004 19:15:43 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 07 Mar 2004 19:15:58 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
dirserv.c
Log Message:
when you get a desc from an unknown router, log its fingerprint
Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dirserv.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- dirserv.c 5 Mar 2004 05:48:28 -0000 1.25
+++ dirserv.c 8 Mar 2004 00:15:40 -0000 1.26
@@ -228,7 +228,13 @@
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);
}