|
@@ -363,6 +363,10 @@ init_keys(void)
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if (authdir_mode(options) && options->V3AuthoritativeDir)
|
|
|
+ init_v3_authority_keys(keydir);
|
|
|
+
|
|
|
|
|
|
tor_snprintf(keydir,sizeof(keydir),
|
|
|
"%s"PATH_SEPARATOR"keys"PATH_SEPARATOR"secret_id_key",datadir);
|
|
@@ -371,10 +375,6 @@ init_keys(void)
|
|
|
if (!prkey) return -1;
|
|
|
set_identity_key(prkey);
|
|
|
|
|
|
-
|
|
|
- if (authdir_mode(options) && options->V3AuthoritativeDir)
|
|
|
- init_v3_authority_keys(keydir);
|
|
|
-
|
|
|
|
|
|
tor_snprintf(keydir,sizeof(keydir),
|
|
|
"%s"PATH_SEPARATOR"keys"PATH_SEPARATOR"secret_onion_key",datadir);
|