summaryrefslogtreecommitdiff
path: root/src/or/routerparse.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-03 11:48:08 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-03 13:09:08 -0400
commit5acddbbbf74199b46eef75cbbeb11ea6aad9326f (patch)
tree87615a56e6fe2f56871add6092c92fa21ccb3d53 /src/or/routerparse.h
parent77d9dd39c36a4da609c878840be35c515104fb9a (diff)
downloadtor-5acddbbbf74199b46eef75cbbeb11ea6aad9326f.tar.gz
tor-5acddbbbf74199b46eef75cbbeb11ea6aad9326f.zip
bug#22143/prop#140: identify input diffs by their digest-as-signed
See may 3 changes to prop140 for more background.
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r--src/or/routerparse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h
index e8d71b6dc9..088f773c5e 100644
--- a/src/or/routerparse.h
+++ b/src/or/routerparse.h
@@ -16,6 +16,11 @@ int router_get_router_hash(const char *s, size_t s_len, char *digest);
int router_get_dir_hash(const char *s, char *digest);
int router_get_networkstatus_v3_hashes(const char *s,
common_digests_t *digests);
+int router_get_networkstatus_v3_signed_boundaries(const char *s,
+ const char **start_out,
+ const char **end_out);
+int router_get_networkstatus_v3_sha3_as_signed(uint8_t *digest_out,
+ const char *s);
int router_get_extrainfo_hash(const char *s, size_t s_len, char *digest);
#define DIROBJ_MAX_SIG_LEN 256
char *router_get_dirobj_signature(const char *digest,