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

[or-cvs] reload the fingerprints file on HUP



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

Modified Files:
	main.c 
Log Message:
reload the fingerprints file on HUP


Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- main.c	15 Oct 2003 19:27:51 -0000	1.135
+++ main.c	17 Oct 2003 05:23:48 -0000	1.136
@@ -608,6 +608,15 @@
     if(please_reset) {
       /* fetch a new directory */
       if(options.DirPort) {
+
+        /* reload the fingerprint file */
+        char keydir[512]; 
+        sprintf(keydir,"%s/approved-routers", options.DataDirectory);
+        log_fn(LOG_INFO,"Reloading approved fingerprints from %s...",keydir);
+        if(dirserv_parse_fingerprint_file(keydir) < 0) {
+          log_fn(LOG_WARN, "Error reloading fingerprints. Continuing with old list.");
+        }
+
         if(router_get_list_from_file(options.RouterFile) < 0) {
           log(LOG_WARN,"Error reloading router list. Continuing with old list.");
         }