aboutsummaryrefslogtreecommitdiff
path: root/src/torcontrol.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-09-08 17:48:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-11-12 17:58:15 +0100
commit09c1ae1c01076f64fe0654f371200668306e5e18 (patch)
treeca15b563a5b6e39b53edafda7818c986cc7e7f4b /src/torcontrol.h
parent2f796e5fe7a51e4636600b320dc1995e048b4ba2 (diff)
downloadbitcoin-09c1ae1c01076f64fe0654f371200668306e5e18.tar.xz
torcontrol improvements and fixes
- Force AUTHCOOKIE size to be 32 bytes: This provides protection against an attack where a process pretends to be Tor and uses the cookie authentication method to nab arbitrary files such as the wallet - torcontrol logging - fix cookie auth - add HASHEDPASSWORD auth, fix fd leak when fwrite() fails - better error reporting when cookie file is not ok - better init/shutdown flow - stop advertizing service when disconnected from tor control port - COOKIE->SAFECOOKIE auth
Diffstat (limited to 'src/torcontrol.h')
-rw-r--r--src/torcontrol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/torcontrol.h b/src/torcontrol.h
index fa55f6b030..72dc82c5b1 100644
--- a/src/torcontrol.h
+++ b/src/torcontrol.h
@@ -14,6 +14,7 @@ extern const std::string DEFAULT_TOR_CONTROL;
static const bool DEFAULT_LISTEN_ONION = true;
void StartTorControl(boost::thread_group& threadGroup, CScheduler& scheduler);
+void InterruptTorControl();
void StopTorControl();
#endif /* BITCOIN_TORCONTROL_H */