浏览代码

stop wanting to split init_keys()

svn:r2735
Roger Dingledine 20 年之前
父节点
当前提交
9f3e3d2b71
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      src/or/main.c
  2. 1 1
      src/or/router.c

+ 0 - 2
src/or/main.c

@@ -704,8 +704,6 @@ static int do_hup(void) {
     return -1;
   }
   options = get_options();
-/*XXX this should move to options_act, but only once it's been
- * removed from init_keys() */
   if(authdir_mode(options)) {
     /* reload the approved-routers file */
     tor_snprintf(keydir,sizeof(keydir),"%s/approved-routers", options->DataDirectory);

+ 1 - 1
src/or/router.c

@@ -239,7 +239,7 @@ int init_keys(void) {
   if (!key_lock)
     key_lock = tor_mutex_new();
 
-  /* OP's don't need persistant keys; just make up an identity and
+  /* OP's don't need persistent keys; just make up an identity and
    * initialize the TLS context. */
   if (!server_mode(options)) {
     if (!(prkey = crypto_new_pk_env()))