aboutsummaryrefslogtreecommitdiff
path: root/src/app/main/risky_options.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-10-28 11:34:30 -0400
committerNick Mathewson <nickm@torproject.org>2020-10-28 11:34:30 -0400
commit3f442987f194d96a842fd15808e5d40f784cfca4 (patch)
tree9f3c51a663a41df1fe80a399a2270250e62c82e0 /src/app/main/risky_options.h
parent2edda444da8d66cbbe86af3c97352ab9b89d651d (diff)
downloadtor-3f442987f194d96a842fd15808e5d40f784cfca4.tar.gz
tor-3f442987f194d96a842fd15808e5d40f784cfca4.zip
Log a warning if Tor was built with any "risky" compile-time options
These options are meant for testing builds only, and are likely to cause trouble if used in a production environment. Closes #18888.
Diffstat (limited to 'src/app/main/risky_options.h')
-rw-r--r--src/app/main/risky_options.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/main/risky_options.h b/src/app/main/risky_options.h
new file mode 100644
index 0000000000..4548ae3efb
--- /dev/null
+++ b/src/app/main/risky_options.h
@@ -0,0 +1,17 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2020, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file risky_options.h
+ * \brief Header for risky_options.c
+ **/
+
+#ifndef TOR_RISKY_OPTIONS_H
+#define TOR_RISKY_OPTIONS_H
+
+extern const char risky_option_list[];
+
+#endif