From 3f442987f194d96a842fd15808e5d40f784cfca4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 28 Oct 2020 11:34:30 -0400 Subject: 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. --- src/app/main/risky_options.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/main/risky_options.h (limited to 'src/app/main/risky_options.h') 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 -- cgit v1.2.3-54-g00ecf