aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-18 14:38:31 -0400
committerNick Mathewson <nickm@torproject.org>2013-07-18 14:40:12 -0400
commitf45e1fbd5b25735c75bed8767d9d50e279c4b63a (patch)
treeed755a43790fa2b93ee0f932e00fc81fc82197c4 /src/or/config.h
parentabedd35de08f2a2bd91d9d17e2f3cfd3b42ba52a (diff)
downloadtor-f45e1fbd5b25735c75bed8767d9d50e279c4b63a.tar
tor-f45e1fbd5b25735c75bed8767d9d50e279c4b63a.tar.gz
Start of a unit test for options_validate.
I added this so I could write a unit test for ServerTransportOptions, but it incidentally exercises the succeed-on-defaults case of options_validate too.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 9910f1873..16a8a350d 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -116,5 +116,17 @@ smartlist_t *get_options_from_transport_options_line(const char *line,
const char *transport);
smartlist_t *get_options_for_server_transport(const char *transport);
+#ifdef CONFIG_PRIVATE
+#ifdef TOR_UNIT_TESTS
+extern struct config_format_t options_format;
+#endif
+
+STATIC void or_options_free(or_options_t *options);
+STATIC int options_validate(or_options_t *old_options,
+ or_options_t *options,
+ or_options_t *default_options,
+ int from_setconf, char **msg);
+#endif
+
#endif