Make sure that every module in src/or has a brief description.

This commit is contained in:
Nick Mathewson 2016-02-27 18:08:24 +01:00
parent d5cbc21ad1
commit fe6ca826df
21 changed files with 126 additions and 6 deletions

View File

@ -4,6 +4,15 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file addressmap.c
*
* \brief The addressmap module manages the processes by which we rewrite
* addresses in client requess. It handles the MapAddress controller and
* torrc commands, and the TrackHostExits feature, and the client-side DNS
* cache (deprecated).
*/
#define ADDRESSMAP_PRIVATE
#include "or.h"

View File

@ -8,7 +8,8 @@
* \file buffers.c
* \brief Implements a generic interface buffer. Buffers are
* fairly opaque string holders that can read to or flush from:
* memory, file descriptors, or TLS connections.
* memory, file descriptors, or TLS connections. Buffers are implemented
* as linked lists of memory chunks.
**/
#define BUFFERS_PRIVATE
#include "or.h"

View File

@ -3,7 +3,11 @@
/**
* \file channel.c
* \brief OR-to-OR channel abstraction layer
*
* \brief OR/OP-to-OR channel abstraction layer. A channel's job is to
* transfer cells from Tor instance to Tor instance.
* Currently, there is only one implementation of the channel abstraction: in
* channeltls.c.
**/
/*

View File

@ -3,7 +3,9 @@
/**
* \file channeltls.c
* \brief channel_t concrete subclass using or_connection_t
*
* \brief A concrete subclass of channel_t using or_connection_t to transfer
* cells between Tor instances.
**/
/*

View File

@ -4,6 +4,15 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file circpathbias.c
*
* \brief Code to track success/failure rates of circuits built through
* different tor nodes, in an attempt to detect attacks where
* an attacker deliberately causes circuits to fail until the client
* choses a path they like.
*/
#include "or.h"
#include "channel.h"
#include "circpathbias.h"

View File

@ -6,7 +6,9 @@
/**
* \file circuitbuild.c
* \brief The actual details of building circuits.
*
* \brief Implements the details of building circuits (by chosing paths,
* constructing/sending create/extend cells, and so on).
**/
#define CIRCUITBUILD_PRIVATE

View File

@ -6,7 +6,8 @@
/**
* \file circuitlist.c
* \brief Manage the global circuit list.
*
* \brief Manage the global circuit list, and looking up circuits within it.
**/
#define CIRCUITLIST_PRIVATE
#include "or.h"

View File

@ -4,6 +4,13 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file circuitstats.c
*
* \brief Maintains and analyzes statistics about circuit built times, so we
* can tell how long we may need to wait for a fast circuit to be constructed.
*/
#define CIRCUITSTATS_PRIVATE
#include "or.h"

View File

@ -4,6 +4,13 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file confparse.c
*
* \brief Back-end for parsing and generating key-value files, used to
* implement the torrc file format and the state file.
*/
#include "or.h"
#include "confparse.h"
#include "routerset.h"

View File

@ -2,7 +2,8 @@
/* See LICENSE for licensing information */
/**
* \file dnsserv.c \brief Implements client-side DNS proxy server code. Note:
* \file dnsserv.c
* \brief Implements client-side DNS proxy server code. Note:
* this is the DNS Server code, not the Server DNS code. Confused? This code
* runs on client-side, and acts as a DNS server. The code in dns.c, on the
* other hand, runs on Tor servers, and acts as a DNS client.

View File

@ -1,6 +1,14 @@
/* Copyright (c) 2013-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file fp_pair.c
*
* \brief Manages data structures for associating pairs of fingerprints. Used
* to handle combinations of identity/signing-key fingerprints for
* authorities.
**/
#include "or.h"
#include "fp_pair.h"

View File

@ -1,6 +1,13 @@
/* Copyright (c) 2014, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file keypin.c
*
* \brief Functions and structures for associating routers' RSA key
* fingerprints with their ED25519 keys.
*/
#define KEYPIN_PRIVATE
#include "orconfig.h"

View File

@ -1,6 +1,13 @@
/* Copyright (c) 2009-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file microdesc.c
*
* \brief Implements microdescriptors -- an abbreviated description of
* less-frequently-changing router information.
*/
#include "or.h"
#include "circuitbuild.h"
#include "config.h"

View File

@ -4,6 +4,14 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file nodelist.c
*
* \brief Structures and functions for tracking what we know about the routers
* on the Tor network, and correlating information from networkstatus,
* routerinfo, and microdescs.
*/
#include "or.h"
#include "address.h"
#include "config.h"

View File

@ -3,6 +3,12 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file ntmain.c
*
* \brief Entry points for running/configuring Tor as Windows Service.
*/
#ifdef _WIN32
#include "or.h"

View File

@ -1,6 +1,12 @@
/* Copyright (c) 2012-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file onion_ntor.c
*
* \brief Implementation for the ntor handshake.
*/
#include "orconfig.h"
#define ONION_NTOR_PRIVATE

View File

@ -1,6 +1,12 @@
/* Copyright (c) 2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file periodic.c
*
* \brief Generic backend for handling periodic events.
*/
#include "or.h"
#include "compat_libevent.h"
#include "config.h"

View File

@ -1,6 +1,14 @@
/* Copyright (c) 2014, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file routerkeys.c
*
* \brief Functions and structures to handle generating and maintaining the
* set of keypairs necessary to be an OR. (Some of the code in router.c
* belongs here.)
*/
#include "or.h"
#include "config.h"
#include "router.h"

View File

@ -4,6 +4,13 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file routerset.c
*
* \brief Functions and structures to handle set-type selection of routers
* by name, ID, address, etc.
*/
#define ROUTERSET_PRIVATE
#include "or.h"

View File

@ -4,6 +4,13 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file statefile.c
*
* \brief Handles parsing and encoding the persistent 'state' file that carries
* miscellaneous persistent state between Tor invocations.
*/
#define STATEFILE_PRIVATE
#include "or.h"
#include "circuitstats.h"

View File

@ -1,6 +1,13 @@
/* Copyright (c) 2014, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file torcert.c
*
* \brief Implementation for ed25519-signed certificates as used in the Tor
* protocol.
*/
#include "crypto.h"
#include "torcert.h"
#include "ed25519_cert.h"