diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:12:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:28 -0400 |
commit | 1bb9734e3a745e2a16b58512f47a6db1229a2b75 (patch) | |
tree | 0ad06edda894e83b3f99dc946d34555014c04ce8 /src/or/policies.h | |
parent | 42acef68ad6fbe462a00815fbccf94c817931e8f (diff) | |
download | tor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.tar.gz tor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.zip |
Implement policies for nodes (and for microdescriptors too)
Diffstat (limited to 'src/or/policies.h')
-rw-r--r-- | src/or/policies.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/policies.h b/src/or/policies.h index acc254da3c..5c1113e75a 100644 --- a/src/or/policies.h +++ b/src/or/policies.h @@ -63,5 +63,12 @@ void policies_free_all(void); char *policy_summarize(smartlist_t *policy); +short_policy_t *parse_short_policy(const char *summary); +void short_policy_free(short_policy_t *policy); +int short_policy_is_reject_star(const short_policy_t *policy); +addr_policy_result_t compare_tor_addr_to_short_policy( + const tor_addr_t *addr, uint16_t port, + const short_policy_t *policy); + #endif |