summaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffernandezmancera@gmail.com>2017-12-15 17:01:22 +0100
committerFernando Fernandez Mancera <ffernandezmancera@gmail.com>2017-12-15 17:01:22 +0100
commit61c721f1458c9779541aa6e07e5e59404cf31dc4 (patch)
treedddff02802c97d4a942216e04d0fc952fee37181 /src/or/main.h
parent15b41fa6ae6a1356d5453242ccb7d7d301dd5e67 (diff)
downloadtor-61c721f1458c9779541aa6e07e5e59404cf31dc4.tar.gz
tor-61c721f1458c9779541aa6e07e5e59404cf31dc4.zip
Add remove file function and remove ephemeral files.
Adding tor_remove_file(filename) and refactoring tor_cleanup(). Removing CookieAuthFile and ExtORPortCookieAuthFile when tor_cleanup() is called. Fixes #23271. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 132ab12bbb..d05800f93f 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -71,6 +71,8 @@ int try_locking(const or_options_t *options, int err_if_locked);
int have_lockfile(void);
void release_lockfile(void);
+void tor_remove_file(const char *filename);
+
void tor_cleanup(void);
void tor_free_all(int postfork);