aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-12-31 08:16:07 +0000
committerRoger Dingledine <arma@torproject.org>2005-12-31 08:16:07 +0000
commit6c693dbda69738b65dddb30f153a92178f9c1d18 (patch)
tree7b37397f81667fe08e66c72b06df45751590d9b1 /src
parente9e7dc176ce5cfd41c62d1a18bb55e11d4c98fc0 (diff)
downloadtor-6c693dbda69738b65dddb30f153a92178f9c1d18.tar
tor-6c693dbda69738b65dddb30f153a92178f9c1d18.tar.gz
add a TorVersion state string.
not yet set to anything. svn:r5687
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
-rw-r--r--src/or/or.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index a0d2eaab9..09fbdaa68 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -244,6 +244,8 @@ static config_var_t _state_vars[] = {
VAR("BWHistoryWriteInterval", UINT, BWHistoryWriteInterval, NULL),
VAR("BWHistoryWriteValues", CSV, BWHistoryWriteValues, NULL),
+ VAR("TorVersion", STRING, TorVersion, NULL),
+
VAR("LastWritten", ISOTIME, LastWritten, NULL),
{ NULL, CONFIG_TYPE_OBSOLETE, 0, NULL, NULL }
diff --git a/src/or/or.h b/src/or/or.h
index ed0f17801..9d118f94d 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1379,6 +1379,8 @@ typedef struct {
time_t BWHistoryWriteEnds;
int BWHistoryWriteInterval;
smartlist_t *BWHistoryWriteValues;
+
+ char *TorVersion;
} or_state_t;
#define MAX_SOCKS_REPLY_LEN 1024