diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-02-13 11:17:16 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-15 07:46:34 -0500 |
commit | f63e06d3dc6757d08ecf26d418ba59bfe060de39 (patch) | |
tree | 26b136316f01e6ebf2b6200c4358eddbe945356c /src/or/routerparse.h | |
parent | 4a2afd5b33f02ed3e5eb591dd29537fa4f69399f (diff) | |
download | tor-f63e06d3dc6757d08ecf26d418ba59bfe060de39.tar.gz tor-f63e06d3dc6757d08ecf26d418ba59bfe060de39.zip |
Extract the part of tor_version_as_new_as that extracts platform
Also add a "strict" mode to reject negative inputs.
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r-- | src/or/routerparse.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h index 9a3fadca1f..01a5de88e8 100644 --- a/src/or/routerparse.h +++ b/src/or/routerparse.h @@ -45,6 +45,9 @@ MOCK_DECL(addr_policy_t *, router_parse_addr_policy_item_from_string, (const char *s, int assume_action, int *malformed_list)); version_status_t tor_version_is_obsolete(const char *myversion, const char *versionlist); +int tor_version_parse_platform(const char *platform, + tor_version_t *version_out, + int strict); int tor_version_as_new_as(const char *platform, const char *cutoff); int tor_version_parse(const char *s, tor_version_t *out); int tor_version_compare(tor_version_t *a, tor_version_t *b); |