diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-10-18 19:32:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-10-18 19:32:49 -0400 |
commit | 54fda6b98ad79d3c2ce50858cea2226675ebfd4c (patch) | |
tree | 49318c923c6c7d4f34f5536b7d8b32cfbe3ef2bd /src/or/router.c | |
parent | 439654012964fa8cd4e2dac926e2dddd45295c6b (diff) | |
download | tor-54fda6b98ad79d3c2ce50858cea2226675ebfd4c.tar.gz tor-54fda6b98ad79d3c2ce50858cea2226675ebfd4c.zip |
Module-level docs for ext_orport and router.c
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 1ac8351475..10498e8ae1 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -37,8 +37,23 @@ /** * \file router.c - * \brief OR functionality, including key maintenance, generating - * and uploading server descriptors, retrying OR connections. + * \brief Miscellaneous relay functionality, including RSA key maintenance, + * generating and uploading server descriptors, picking an address to + * advertise, and so on. + * + * This module handles the job of deciding whether we are a Tor relay, and if + * so what kind. (Mostly through functions like server_mode() that inspect an + * or_options_t, but in some cases based on our own capabilities, such as when + * we are deciding whether to be a directory cache in + * router_has_bandwidth_to_be_dirserver().) + * + * Also in this module are the functions to generate our own routerinfo_t and + * extrainfo_t, and to encode those to signed strings for upload to the + * directory authorities. + * + * This module also handles key maintenance for RSA and Curve25519-ntor keys, + * and for our TLS context. (These functions should eventually move to + * routerkeys.c along with the code that handles Ed25519 keys now.) **/ /************************************************************/ |