diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-19 17:31:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-26 10:56:49 -0700 |
commit | cca1e0acffc7fc2814ed923cc86346175561c9a1 (patch) | |
tree | 857047714b52ae943175019f9c715fec30af578a /src/or/or.h | |
parent | 4df12239f60a79c9543c21e665d2569f064b98ea (diff) | |
download | tor-cca1e0acffc7fc2814ed923cc86346175561c9a1.tar.gz tor-cca1e0acffc7fc2814ed923cc86346175561c9a1.zip |
Add necessary code to parse and handle required/recommended protocols
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 39b124fb48..e9d41eeef8 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2525,6 +2525,16 @@ typedef struct networkstatus_t { * voter has no opinion. */ char *client_versions; char *server_versions; + + /** Lists of subprotocol versions which are _recommended_ for relays and + * clients, or which are _require_ for relays and clients. Tor shouldn't + * make any more network connections if a required protocol is missing. + */ + char *recommended_relay_protocols; + char *recommended_client_protocols; + char *required_relay_protocols; + char *required_client_protocols; + /** List of flags that this vote/consensus applies to routers. If a flag is * not listed here, the voter has no opinion on what its value should be. */ smartlist_t *known_flags; |