From 61c721f1458c9779541aa6e07e5e59404cf31dc4 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Fri, 15 Dec 2017 17:01:22 +0100 Subject: 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 --- src/or/main.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/main.h') 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); -- cgit v1.2.3-54-g00ecf