[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make router_dump_token only for debugging; clean backslashes



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home/arma/work/onion/cvs/src/or

Modified Files:
	directory.c main.c routers.c 
Log Message:
make router_dump_token only for debugging; clean backslashes


Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/src/or/directory.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- directory.c	8 May 2003 21:35:11 -0000	1.12
+++ directory.c	9 May 2003 02:20:16 -0000	1.13
@@ -46,7 +46,7 @@
   if (router->signing_pkey)
     conn->pkey = crypto_pk_dup_key(router->signing_pkey);
   else {
-    log(LOG_ERR, "No signing key known for directory %s; signature won\'t be checked", conn->address);
+    log(LOG_ERR, "No signing key known for directory %s; signature won't be checked", conn->address);
     conn->pkey = NULL;
   }
 

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- main.c	9 May 2003 01:11:56 -0000	1.62
+++ main.c	9 May 2003 02:20:16 -0000	1.63
@@ -654,7 +654,7 @@
 
   routers = (routerinfo_t**) malloc(sizeof(routerinfo_t*) * (nfds+1));
   if (!routers) {
-    log(LOG_ERR, "build_directory(): couldn\'t allocate space for routerinfo");
+    log(LOG_ERR, "build_directory(): couldn't allocate space for routerinfo");
     return -1;
   }
   if (my_routerinfo) {
@@ -671,7 +671,7 @@
       continue; /* we only want to list ones that successfully handshaked */
     router = router_get_by_addr_port(conn->addr,conn->port);
     if(!router) {
-      log(LOG_ERR,"build_directory(): couldn\'t find router %d:%d!",
+      log(LOG_ERR,"build_directory(): couldn't find router %d:%d!",
           conn->addr,conn->port);
       continue;
     }
@@ -735,11 +735,11 @@
   cp = s + i;
   
   if (crypto_SHA_digest(s, i, digest)) {
-    log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t compute digest");
+    log(LOG_ERR,"dump_signed_directory_to_string(): couldn't compute digest");
     return -1;
   }
   if (crypto_pk_private_sign(private_key, digest, 20, signature) < 0) {
-    log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t sign digest");
+    log(LOG_ERR,"dump_signed_directory_to_string(): couldn't sign digest");
     return -1;
   }
   
@@ -749,7 +749,7 @@
   i = strlen(s);
   cp = s+i;
   if (base64_encode(cp, maxlen-i, signature, 128) < 0) {
-    log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t base64-encode signature %d/%d");
+    log(LOG_ERR,"dump_signed_directory_to_string(): couldn't base64-encode signature %d/%d");
     return -1;
   }
 

Index: routers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routers.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- routers.c	9 May 2003 02:00:33 -0000	1.30
+++ routers.c	9 May 2003 02:20:16 -0000	1.31
@@ -376,6 +376,7 @@
   }
 }
 
+#ifdef DEBUG_ROUTER_TOKENS
 static void 
 router_dump_token(directory_token_t *tok) {
   int i;
@@ -411,7 +412,6 @@
   return;
 }
 
-#ifdef DEBUG_ROUTER_TOKENS
 static int
 router_get_next_token(char **s, directory_token_t *tok) {
   int i;
@@ -511,7 +511,7 @@
 int router_get_dir_from_string(char *s, crypto_pk_env_t *pkey)
 {
   if (router_get_dir_from_string_impl(s, &directory, pkey)) {
-    log(LOG_ERR, "router_get_dir_from_string: Couldn\'t parse directory.");
+    log(LOG_ERR, "router_get_dir_from_string: Couldn't parse directory.");
     return -1;
   }
   if (router_resolve_directory(directory)) {
@@ -660,7 +660,7 @@
   for (i = 0; i < max; ++i) {
     remove = 0;
     if (router_resolve(dir->routers[i])) {
-      log(LOG_INFO, "Couldn\'t resolve router %s; removing",
+      log(LOG_INFO, "Couldn't resolve router %s; removing",
           dir->routers[i]->address);
       remove = 1;
       routerinfo_free(dir->routers[i]);