浏览代码

Merge commit 'origin/maint-0.2.1'

Nick Mathewson 16 年之前
父节点
当前提交
4913a8c4ba
共有 7 个文件被更改,包括 11 次插入8 次删除
  1. 1 1
      doc/tor.1.in
  2. 2 1
      src/common/crypto.c
  3. 2 1
      src/or/circuituse.c
  4. 2 1
      src/or/config.c
  5. 2 2
      src/or/dirvote.c
  6. 1 1
      src/or/or.h
  7. 1 1
      src/or/relay.c

+ 1 - 1
doc/tor.1.in

@@ -1217,7 +1217,7 @@ as an exit.)
 Authoritative directories only.  If set to 1, the directory server
 Authoritative directories only.  If set to 1, the directory server
 rejects all uploaded server descriptors that aren't explicitly listed
 rejects all uploaded server descriptors that aren't explicitly listed
 in the fingerprints file. This acts as a "panic button" if we get
 in the fingerprints file. This acts as a "panic button" if we get
-with a Sybil attack. (Default: 0)
+hit with a Sybil attack. (Default: 0)
 .LP
 .LP
 .TP
 .TP
 \fBAuthDirMaxServersPerAddr\fR \fINUM\fP
 \fBAuthDirMaxServersPerAddr\fR \fINUM\fP

+ 2 - 1
src/common/crypto.c

@@ -2298,7 +2298,8 @@ _openssl_locking_cb(int mode, int n, const char *file, int line)
     tor_mutex_release(_openssl_mutexes[n]);
     tor_mutex_release(_openssl_mutexes[n]);
 }
 }
 
 
-/** OpenSSL helper type: wraps a Tor mutex so that OpenSSL can  */
+/** OpenSSL helper type: wraps a Tor mutex so that OpenSSL can use it
+ * as a lock. */
 struct CRYPTO_dynlock_value {
 struct CRYPTO_dynlock_value {
   tor_mutex_t *lock;
   tor_mutex_t *lock;
 };
 };

+ 2 - 1
src/or/circuituse.c

@@ -642,7 +642,8 @@ circuit_expire_old_circuits(time_t now)
     if (circ->timestamp_dirty &&
     if (circ->timestamp_dirty &&
         circ->timestamp_dirty + get_options()->MaxCircuitDirtiness < now &&
         circ->timestamp_dirty + get_options()->MaxCircuitDirtiness < now &&
         !TO_ORIGIN_CIRCUIT(circ)->p_streams /* nothing attached */ ) {
         !TO_ORIGIN_CIRCUIT(circ)->p_streams /* nothing attached */ ) {
-      log_debug(LD_CIRC, "Closing n_circ_id %d (dirty %d secs ago, purpose %d)",
+      log_debug(LD_CIRC, "Closing n_circ_id %d (dirty %d secs ago, "
+                "purpose %d)",
                 circ->n_circ_id, (int)(now - circ->timestamp_dirty),
                 circ->n_circ_id, (int)(now - circ->timestamp_dirty),
                 circ->purpose);
                 circ->purpose);
       circuit_mark_for_close(circ, END_CIRC_REASON_FINISHED);
       circuit_mark_for_close(circ, END_CIRC_REASON_FINISHED);

+ 2 - 1
src/or/config.c

@@ -3069,7 +3069,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
     if (options->VersioningAuthoritativeDir &&
     if (options->VersioningAuthoritativeDir &&
         (!options->RecommendedClientVersions ||
         (!options->RecommendedClientVersions ||
          !options->RecommendedServerVersions))
          !options->RecommendedServerVersions))
-      REJECT("Versioning authoritative dir servers must set Recommended*Versions.");
+      REJECT("Versioning authoritative dir servers must set "
+             "Recommended*Versions.");
     if (options->UseEntryGuards) {
     if (options->UseEntryGuards) {
       log_info(LD_CONFIG, "Authoritative directory servers can't set "
       log_info(LD_CONFIG, "Authoritative directory servers can't set "
                "UseEntryGuards. Disabling.");
                "UseEntryGuards. Disabling.");

+ 2 - 2
src/or/dirvote.c

@@ -996,8 +996,8 @@ networkstatus_compute_consensus(smartlist_t *votes,
           char dd[HEX_DIGEST_LEN+1];
           char dd[HEX_DIGEST_LEN+1];
           base16_encode(id, sizeof(dd), rs_out.identity_digest, DIGEST_LEN);
           base16_encode(id, sizeof(dd), rs_out.identity_digest, DIGEST_LEN);
           base16_encode(dd, sizeof(dd), rs_out.descriptor_digest, DIGEST_LEN);
           base16_encode(dd, sizeof(dd), rs_out.descriptor_digest, DIGEST_LEN);
-          log_warn(LD_DIR, "The voters disagreed on the exit policy summary for"
-                   " router %s with descriptor %s.  This really shouldn't"
+          log_warn(LD_DIR, "The voters disagreed on the exit policy summary "
+                   " for router %s with descriptor %s.  This really shouldn't"
                    " have happened.", id, dd);
                    " have happened.", id, dd);
 
 
           smartlist_sort_strings(exitsummaries);
           smartlist_sort_strings(exitsummaries);

+ 1 - 1
src/or/or.h

@@ -2818,7 +2818,7 @@ void circuit_build_failed(origin_circuit_t *circ);
 #define CIRCLAUNCH_ONEHOP_TUNNEL  (1<<0)
 #define CIRCLAUNCH_ONEHOP_TUNNEL  (1<<0)
 /** Flag to set when a circuit needs to be built of high-uptime nodes */
 /** Flag to set when a circuit needs to be built of high-uptime nodes */
 #define CIRCLAUNCH_NEED_UPTIME    (1<<1)
 #define CIRCLAUNCH_NEED_UPTIME    (1<<1)
-/** Flag to set when a circuit needs to be build of high-capacity nodes */
+/** Flag to set when a circuit needs to be built of high-capacity nodes */
 #define CIRCLAUNCH_NEED_CAPACITY  (1<<2)
 #define CIRCLAUNCH_NEED_CAPACITY  (1<<2)
 /** Flag to set when the last hop of a circuit doesn't need to be an
 /** Flag to set when the last hop of a circuit doesn't need to be an
  * exit node. */
  * exit node. */

+ 1 - 1
src/or/relay.c

@@ -783,7 +783,7 @@ connection_ap_process_end_not_open(
            "Edge got end (%s) before we're connected. Marking for close.",
            "Edge got end (%s) before we're connected. Marking for close.",
        stream_end_reason_to_string(rh->length > 0 ? reason : -1));
        stream_end_reason_to_string(rh->length > 0 ? reason : -1));
   circuit_log_path(LOG_INFO,LD_APP,circ);
   circuit_log_path(LOG_INFO,LD_APP,circ);
-  /* need to test because of detach_retryable*/
+  /* need to test because of detach_retriable */
   if (!conn->_base.marked_for_close)
   if (!conn->_base.marked_for_close)
     connection_mark_unattached_ap(conn, control_reason);
     connection_mark_unattached_ap(conn, control_reason);
   return 0;
   return 0;