aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-18 15:00:52 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-18 11:04:57 -0400
commite1128d905c7eae33d099e4287823fbd18f3c876e (patch)
tree5bfbba46b758e8ee0f6ba2b68eb39f39c8451669 /src/or/routerparse.c
parentd2d5a7dabccf4b653434c0082df7d5c2f90b1575 (diff)
downloadtor-e1128d905c7eae33d099e4287823fbd18f3c876e.tar
tor-e1128d905c7eae33d099e4287823fbd18f3c876e.tar.gz
Fix a couple of documentation issues.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 63f8fab10..87dc608e5 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,