diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-04 16:21:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-04 16:21:58 +0000 |
commit | 6f7847b378a67ad29cdeb9a3c1304de474bf46c0 (patch) | |
tree | 8f7b10020d50f6a3175a7c9e076da649c357641f /src/or/router.c | |
parent | cc7e0f62b512f4b9446ba3ef2cdb702ee14ad82f (diff) | |
download | tor-6f7847b378a67ad29cdeb9a3c1304de474bf46c0.tar.gz tor-6f7847b378a67ad29cdeb9a3c1304de474bf46c0.zip |
r15530@catbus: nickm | 2007-10-04 12:16:27 -0400
Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke.
svn:r11761
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c index b73d420fa0..073d2e17da 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -319,7 +319,8 @@ init_v3_authority_keys(const char *keydir) authority_cert_free(parsed); } -/* DOCDOC */ +/** If we're a v3 authority, check whether we have a certificatge that's + * likely to expire soon. Warn if we do, but not too often. */ void v3_authority_check_key_expiry(void) { @@ -791,7 +792,8 @@ authdir_mode_v3(or_options_t *options) { return authdir_mode(options) && options->V3AuthoritativeDir != 0; } -/** DOCDOC */ +/** Return true if we belive ourselves to be any kind of non-bridge + * authoritative directory */ int authdir_mode_any_nonbridge(or_options_t *options) { @@ -1773,7 +1775,9 @@ router_reset_warnings(void) } } -/** DOCDOC */ +/** Given a router purpose, convert it to a string. Don't call this on + * ROUTER_PURPOSE_UNKNOWN: The whole point of that value is that we don't + * know its string representation. */ const char * router_purpose_to_string(uint8_t p) { @@ -1788,7 +1792,7 @@ router_purpose_to_string(uint8_t p) return NULL; } -/** DOCDOC */ +/** Given a string, convert it to a router purpose. */ uint8_t router_purpose_from_string(const char *s) { |