aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-26 20:42:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-27 09:08:35 -0400
commit42b3caa6ad70106e7bca90bceca378b91045f545 (patch)
treec8835d313d8f569faa3936d7789afeb5491cd40f /src/common/sandbox.h
parent80730c45e032544155074022c0df5b6909b68faa (diff)
downloadtor-42b3caa6ad70106e7bca90bceca378b91045f545.tar.gz
tor-42b3caa6ad70106e7bca90bceca378b91045f545.zip
Move network code to libtor-net.
There are some additional changes to come: those points are marked by XXXX.
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index f7c990e013..60d8e8816a 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -104,27 +104,6 @@ typedef struct {
#endif /* defined(USE_LIBSECCOMP) */
#ifdef USE_LIBSECCOMP
-/** Pre-calls getaddrinfo in order to pre-record result. */
-int sandbox_add_addrinfo(const char *addr);
-
-struct addrinfo;
-/** Replacement for getaddrinfo(), using pre-recorded results. */
-int sandbox_getaddrinfo(const char *name, const char *servname,
- const struct addrinfo *hints,
- struct addrinfo **res);
-void sandbox_freeaddrinfo(struct addrinfo *addrinfo);
-void sandbox_free_getaddrinfo_cache(void);
-#else /* !(defined(USE_LIBSECCOMP)) */
-#define sandbox_getaddrinfo(name, servname, hints, res) \
- getaddrinfo((name),(servname), (hints),(res))
-#define sandbox_add_addrinfo(name) \
- ((void)(name))
-#define sandbox_freeaddrinfo(addrinfo) \
- freeaddrinfo((addrinfo))
-#define sandbox_free_getaddrinfo_cache()
-#endif /* defined(USE_LIBSECCOMP) */
-
-#ifdef USE_LIBSECCOMP
/** Returns a registered protected string used with the sandbox, given that
* it matches the parameter.
*/
@@ -168,7 +147,4 @@ int sandbox_init(sandbox_cfg_t* cfg);
/** Return true iff the sandbox is turned on. */
int sandbox_is_active(void);
-void sandbox_disable_getaddrinfo_cache(void);
-
#endif /* !defined(SANDBOX_H_) */
-