diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-15 14:21:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-15 14:21:25 -0400 |
commit | 00f1d1653e4ff703cfbcf82060b229ca8a39030d (patch) | |
tree | 1f53a2395b9f832d05893b86f651f40db33bc525 /src/or/or.h | |
parent | 1e4e9db8157e8691327fe9ee9de5df6fe9891040 (diff) | |
download | tor-00f1d1653e4ff703cfbcf82060b229ca8a39030d.tar.gz tor-00f1d1653e4ff703cfbcf82060b229ca8a39030d.zip |
Extract extrainfo_t into its own header
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/or/or.h b/src/or/or.h index 1f7c4be507..d07e594d77 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1693,22 +1693,7 @@ typedef struct { uint8_t purpose; } routerinfo_t; -/** Information needed to keep and cache a signed extra-info document. */ -typedef struct extrainfo_t { - signed_descriptor_t cache_info; - /** SHA256 digest of this document */ - uint8_t digest256[DIGEST256_LEN]; - /** The router's nickname. */ - char nickname[MAX_NICKNAME_LEN+1]; - /** True iff we found the right key for this extra-info, verified the - * signature, and found it to be bad. */ - unsigned int bad_sig : 1; - /** If present, we didn't have the right key to verify this extra-info, - * so this is a copy of the signature in the document. */ - char *pending_sig; - /** Length of pending_sig. */ - size_t pending_sig_len; -} extrainfo_t; +typedef struct extrainfo_t extrainfo_t; /** Contents of a single router entry in a network status object. */ |