diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-18 14:38:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-18 14:40:12 -0400 |
commit | f45e1fbd5b25735c75bed8767d9d50e279c4b63a (patch) | |
tree | ed755a43790fa2b93ee0f932e00fc81fc82197c4 /src/or/config.h | |
parent | abedd35de08f2a2bd91d9d17e2f3cfd3b42ba52a (diff) | |
download | tor-f45e1fbd5b25735c75bed8767d9d50e279c4b63a.tar.gz tor-f45e1fbd5b25735c75bed8767d9d50e279c4b63a.zip |
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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h index 9910f18736..16a8a350d5 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 |