aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
Commit message (Collapse)AuthorAge
* Fix warnings in test_config_fix_my_familyNick Mathewson2013-09-03
|
* MyFamily option will now fix fingerprints missing their leading instead of ↵Kevin Butler2013-08-31
| | | | complaining. Should fix #4341.
* Fix memory leaks in test_config_parse_transport_options_lineNick Mathewson2013-07-18
|
* Write unit tests for the ServerTransportOptions parsing function.George Kadianakis2013-07-18
|
* Check more return values in the unit testsNick Mathewson2013-06-18
|
* Fix a couple of resource leaks in test_config.cNick Mathewson2013-06-18
| | | | Spotted by Coverity Scan. Not in any released Tor.
* Fix windows compilation warning in test_config.cNick Mathewson2013-05-29
| | | | | | | bugfix on 78cc5833a1da038331186ddf07f4add7f8f1094b; bug not in any released Tor. Spotted by weasel using Jenkins.
* Tweak 4282 unit tests for style, safety, correctness.Nick Mathewson2013-05-24
| | | | | We do our filesystem wrangling relative to get_fname() results, so that if we fail or crash, we can always clean up.
* Unit tests for check_or_create_data_subdir and write_to_data_subdir.Peter Retzlaff2013-05-24
|
* Add parse_bridge_line() unittests.George Kadianakis2013-02-11
|
* Update the copyright date to 201.Nick Mathewson2013-01-16
|
* Implement option to turn off DNS cache use on a client portNick Mathewson2012-12-17
| | | | | | (This is part 2 of making DNS cache use enabled/disabled on a per-client port basis. This implements the CacheIPv[46]DNS options, but not the UseCachedIPv[46] ones.)
* Move address map into its own file.Nick Mathewson2012-11-14
|
* Split the generic config_fmt_t code into a new confparse.c fileNick Mathewson2012-09-13
| | | | | This helps us split up one of our larger files, and sets the stage for refactoring the configuration backend a little
* Merge remote-tracking branch 'public/bug3940_redux'Nick Mathewson2012-06-13
|\
| * An attempt at bug3940 and making AllowDotExit 0 work with MapAddressNick Mathewson2012-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This time, I follow grarpamp's suggestion and move the check for .exit+AllowDotExit 0 to the top of connection_ap_rewrite_and_attach, before any rewriting occurs. This way, .exit addresses are forbidden as they arrive from a socks connection or a DNSPort request, and not otherwise. It _is_ a little more complicated than that, though. We need to treat any .exit addresses whose source is TrackHostExits as meaning that we can retry without that exit. We also need to treat any .exit address that comes from an AutomapHostsOnResolve operation as user-provided (and thus forbidden if AllowDotExits==0), so that transitioning from AllowDotExits==1 to AllowDotExits==0 will actually turn off automapped .exit addresses.
* | Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
|/
* Appease check-spacesSebastian Hahn2011-12-02
|
* Merge branch 'bug933_nm_rebased_v2'Nick Mathewson2011-11-30
| | | | | Conflicts: src/test/test.c
* No new "LEGACY" tests allowed.Nick Mathewson2011-11-30
|
* Fix compilation: get_options() now returns constNick Mathewson2011-11-30
|
* Address nickm's comments at ↵Robert Hogan2011-11-30
| | | | | | | | | | | https://trac.torproject.org/projects/tor/ticket/933#comment:8 1. Only allow '*.' in MapAddress expressions. Ignore '*ample.com' and '.example.com'. This has resulted in a slight refactoring of config_register_addressmaps. 2. Add some more detail to the man page entry for AddressMap. 3. Fix initialization of a pointer to NULL rather than 0. 4. Update the unit tests to cater for the changes in 1 and test more explicitly for recursive mapping.
* Address nickm's comments at ↵Robert Hogan2011-11-30
| | | | | | | | | | | | | | | | | | https://trac.torproject.org/projects/tor/ticket/933#comment:4 1. Implement the following mapping rules: MapAddress a.b.c d.e.f # This is what we have now MapAddress .a.b.c d.e.f # Replaces any address ending with .a.b.c with d.e.f MapAddress .a.b.c .d.e.f # Replaces the .a.b.c at the end of any addr with .d.e.f (Note that 'a.b.c .d.e.f' is invalid, and will be rejected.) 2. Add tests for the new rules. 3. Allow proper wildcard annotation, i.e. '*.d.e' '.d.e' will still work. 4. Update addressmap_entry_t with an is_wildcard member.
* bug933 - Match against super-domains in MapAddressRobert Hogan2011-11-30
Allow MapAddress to handle directives such as: MapAddress .torproject.org .torserver.exit MapAddress .org 1.1.1.1 Add tests for addressmap_rewrite.