diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-18 15:00:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-18 11:04:57 -0400 |
commit | e1128d905c7eae33d099e4287823fbd18f3c876e (patch) | |
tree | 5bfbba46b758e8ee0f6ba2b68eb39f39c8451669 /src/or/routerparse.c | |
parent | d2d5a7dabccf4b653434c0082df7d5c2f90b1575 (diff) | |
download | tor-e1128d905c7eae33d099e4287823fbd18f3c876e.tar.gz tor-e1128d905c7eae33d099e4287823fbd18f3c876e.zip |
Fix a couple of documentation issues.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 63f8fab104..87dc608e57 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -683,7 +683,12 @@ router_get_extrainfo_hash(const char *s, size_t s_len, char *digest) "\nrouter-signature",'\n', DIGEST_SHA1); } -/** DOCDOC */ +/** Helper: used to generate signatures for routers, directories and + * network-status objects. Given a <b>digest_len</b>-byte digest in + * <b>digest</b> and a secret <b>private_key</b>, generate an PKCS1-padded + * signature, BASE64-encode it, surround it with -----BEGIN/END----- pairs, + * and return the new signature on success or NULL on failure. + */ char * router_get_dirobj_signature(const char *digest, size_t digest_len, |