aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-05-28 10:42:22 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-28 10:42:22 -0400
commit79db24b3d5cb845b18d737bbc63510154f6a87c7 (patch)
treeba58600feb5e3a4f68585e78076ee2d3bf7790c0 /src/or/router.h
parentb600b68b209984fa55f1dc0c311f77e2942a8a17 (diff)
downloadtor-79db24b3d5cb845b18d737bbc63510154f6a87c7.tar.gz
tor-79db24b3d5cb845b18d737bbc63510154f6a87c7.zip
Sign extrainfo documents with ed25519
Extrainfo documents are now ed-signed just as are router descriptors, according to proposal 220. This patch also includes some more tests for successful/failing parsing, and fixes a crash bug in ed25519 descriptor parsing.
Diffstat (limited to 'src/or/router.h')
-rw-r--r--src/or/router.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.h b/src/or/router.h
index cb813c6813..695cfd38e5 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -109,7 +109,8 @@ int router_has_addr(const routerinfo_t *router, const tor_addr_t *addr);
int router_has_orport(const routerinfo_t *router,
const tor_addr_port_t *orport);
int extrainfo_dump_to_string(char **s, extrainfo_t *extrainfo,
- crypto_pk_t *ident_key);
+ crypto_pk_t *ident_key,
+ const ed25519_keypair_t *signing_keypair);
int is_legal_nickname(const char *s);
int is_legal_nickname_or_hexdigest(const char *s);
int is_legal_hexdigest(const char *s);