]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move ConsensusParams to dirauth module.
authorNick Mathewson <nickm@torproject.org>
Thu, 19 Dec 2019 14:46:14 +0000 (09:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Dec 2019 14:46:14 +0000 (09:46 -0500)
src/app/config/config.c
src/app/config/or_options_st.h
src/feature/dirauth/dirauth_options.inc
src/feature/dirauth/dirvote.c

index 4b47894cc14ab26b1df1b6645ec2f270cf0e9e8d..65a0733e0db82c47ea510962b04f4f297d04082d 100644 (file)
@@ -371,7 +371,6 @@ static const config_var_t option_vars_[] = {
   V(ClientTransportPlugin,       LINELIST, NULL),
   V(ClientUseIPv6,               BOOL,     "0"),
   V(ClientUseIPv4,               BOOL,     "1"),
-  V(ConsensusParams,             STRING,   NULL),
   V(ConnLimit,                   POSINT,     "1000"),
   V(ConnDirectionStatistics,     BOOL,     "0"),
   V(ConstrainedSockets,          BOOL,     "0"),
index 09edc21a79e033b686b592c10261ac81c36581d5..eaa32f9bf4a06a8219c6f028a53eaa91a4517026 100644 (file)
@@ -670,10 +670,6 @@ struct or_options_t {
   /** Location of guardfraction file */
   char *GuardfractionFile;
 
-  /** Authority only: key=value pairs that we add to our networkstatus
-   * consensus vote on the 'params' line. */
-  char *ConsensusParams;
-
   /** Authority only: minimum number of measured bandwidths we must see
    * before we only believe measured bandwidths to assign flags. */
   int MinMeasuredBWsForAuthToIgnoreAdvertised;
index f0aadb006fda3d5fdcc64617e5200fd21c1b6d1e..f3d8e35b35ca94676a2bf8b58d3f08c2ed884341 100644 (file)
@@ -44,6 +44,10 @@ CONF_VAR(AuthDirSharedRandomness, BOOL, 0, "1")
 /* NOTE: remove this option someday. */
 CONF_VAR(AuthDirTestEd25519LinkKeys, BOOL, 0, "1")
 
+/** Authority only: key=value pairs that we add to our networkstatus
+ * consensus vote on the 'params' line. */
+CONF_VAR(ConsensusParams, STRING, 0, NULL)
+
 /** As directory authority, accept hidden service directories after what
  * time? */
 CONF_VAR(MinUptimeHidServDirectoryV2, INTERVAL, 0, "96 hours")
index 7caa6bf30df4a7a787e91cdb009c5eebb26e4e95..1fd438b7db1354479f190ea091bae52626b40d6c 100644 (file)
@@ -4664,10 +4664,10 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
     smartlist_add_strdup(v3_out->known_flags, "BadExit");
   smartlist_sort_strings(v3_out->known_flags);
 
-  if (options->ConsensusParams) {
+  if (d_options->ConsensusParams) {
     v3_out->net_params = smartlist_new();
     smartlist_split_string(v3_out->net_params,
-                           options->ConsensusParams, NULL, 0, 0);
+                           d_options->ConsensusParams, NULL, 0, 0);
     smartlist_sort_strings(v3_out->net_params);
   }
   v3_out->bw_file_headers = bw_file_headers;