aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/versions.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-24 20:40:48 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-24 20:44:37 -0500
commit7da06e43da96f4253a756af546f27f03141b3784 (patch)
treec3208afde1bb9ce2470032268066cfe42c75be11 /src/core/or/versions.h
parentb16d6453adde2b13d2aa95a74ec3c09a259f185f (diff)
downloadtor-7da06e43da96f4253a756af546f27f03141b3784.tar.gz
tor-7da06e43da96f4253a756af546f27f03141b3784.zip
No longer exit for missing required protocolversions on an old consensus
Specifically, if the consensus is older than the (estimted or measured) release date for this version of tor, we assume that the required versions may have changed in between that consensus and this release. Implements ticket 27735 and proposal 297.
Diffstat (limited to 'src/core/or/versions.h')
-rw-r--r--src/core/or/versions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/or/versions.h b/src/core/or/versions.h
index 4fc50a0018..acd8998918 100644
--- a/src/core/or/versions.h
+++ b/src/core/or/versions.h
@@ -26,6 +26,8 @@ typedef enum version_status_t {
VS_UNKNOWN, /**< We have no idea. */
} version_status_t;
+time_t tor_get_approx_release_date(void);
+
version_status_t tor_version_is_obsolete(const char *myversion,
const char *versionlist);
int tor_version_parse_platform(const char *platform,