| Commit message (Expand) | Author | Age |
* | Merge remote-tracking branch 'asn2/bug3656'•••Conflicts:
src/common/util.c
src/common/util.h
src/or/config.h
src/or/main.c
src/test/test_util.c
| Nick Mathewson | 2011-10-07 |
|\ |
|
| * | Add some unit tests. | George Kadianakis | 2011-07-13 |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
configure.in
src/or/circuitbuild.c
| Nick Mathewson | 2011-09-09 |
|\ \ |
|
| * | | Use %f with printf-style formatting, not %lf•••For printf, %f and %lf are synonymous, since floats are promoted to
doubles when passed as varargs. It's only for scanf that we need to
say "%lf" for doubles and "%f" for floats.
Apparenly, some older compilers think it's naughty to say %lf and like
to spew warnings about it.
Found by grarpamp.
| Nick Mathewson | 2011-08-30 |
* | | | Clean up bridge-stats code.•••Only write a bridge-stats string if bridge stats have been
initialized. This behavior is similar to dirreq-stats, entry-stats,
etc.
Also add a few unit tests for the bridge-stats code.
| Karsten Loesing | 2011-08-04 |
* | | | Separate generation of an entry-stats string from writing it to disk.•••This commit is similar to the previous two commits for dirreq-stats,
but for entry-stats.
| Karsten Loesing | 2011-08-04 |
* | | | Separate generation of a dirreq-stats string from writing it to disk.•••This patch separates the generation of a dirreq-stats string from
actually writing it to disk. The new geoip_format_dirreq_stats()
generates a dirreq-stats string that geoip_dirreq_stats_write() writes
to disk. All the state changing (e.g., resetting the dirreq-stats
history and initializing the next measurement interval) takes place in
geoip_dirreq_stats_write(). That allows us to finally test the
dirreq-stats code better.
| Karsten Loesing | 2011-08-04 |
* | | | Add unit tests for buffer-stats.•••Now that formatting the buffer-stats string is separate from writing
it to disk, we can also decouple the logic to extract stats from
circuits and finally write some unit tests for the history code.
| Karsten Loesing | 2011-08-04 |
* | | | Unit test for generic_buffer_set_to_copy | Nick Mathewson | 2011-07-20 |
* | | | Remove compare_addr_to_addr_policy•••Nothing used it but the unit tests; everything else knows to use
compare_tor_addr_to_addr_policy instead.
| Nick Mathewson | 2011-07-15 |
* | | | Merge remote-tracking branch 'public/bug1666'•••Conflicts:
doc/spec/socks-extensions.txt
src/or/buffers.c
src/or/config.c
src/or/connection_edge.c
| Nick Mathewson | 2011-07-13 |
|\ \ \ |
|
| * | | | Refactor fetch_from_buf_socks() to be greedy•••Previously, fetch_from_buf_socks() might return 0 if there was still
data on the buffer and a subsequent call to fetch_from_buf_socks()
would return 1. This was making some of the socks5 unit tests
harder to write, and could potentially have caused misbehavior with
some overly verbose SOCKS implementations. Now,
fetch_from_buf_socks() does as much processing as it can, and
returns 0 only if it really needs more data. This brings it into
line with the evbuffer socks implementation.
| Nick Mathewson | 2011-06-29 |
| * | | | Refactor socks unit tests into a suite of their own | Nick Mathewson | 2011-06-29 |
| * | | | Record username/password data in socks_request_t•••This change also requires us to add and use a pair of
allocator/deallocator functions for socks_request_t, instead of
using tor_malloc_zero/tor_free directly.
| Nick Mathewson | 2011-06-29 |
| * | | | Fix 'make check-spaces' | Nick Mathewson | 2011-06-29 |
| * | | | bug1666 - Pass-through support for SOCKS5 authentication(4)•••Implement nickm's suggestion that we tolerate SOCKS5 clients
that send authentication credentials and SOCKS commands all in
one go.
| Robert Hogan | 2010-12-14 |
| * | | | bug1666 - Pass-through support for SOCKS5 authentication (2)•••Address Nick's comments:
- Refactor against changes in buffers.c
- Ensure we have negotiated a method before accepting
authentication credentials
| Robert Hogan | 2010-12-14 |
| * | | | bug1666 - Pass-through support for SOCKS5 authentication•••If a SOCKS5 client insists on authentication, allow it to
negotiate a connection with Tor's SOCKS server successfully.
Any credentials the client provides are ignored.
This allows Tor to work with SOCKS5 clients that can only
support 'authenticated' connections.
Also add a bunch of basic unit tests for SOCKS4/4a/5 support
in buffers.c.
| Robert Hogan | 2010-12-14 |
* | | | | Check return value of crypto_global_init in test.c•••This will let the unit tests fail in a less mystifying way if the
crypto subsystem is b0rken, and will also make Coverity happier.
CID # 429.
| Nick Mathewson | 2011-07-01 |
* | | | | Make the get_options() return const•••This lets us make a lot of other stuff const, allows the compiler to
generate (slightly) better code, and will make me get slightly fewer
patches from folks who stick mutable stuff into or_options_t.
const: because not every input is an output!
| Nick Mathewson | 2011-06-14 |
| |_|/
|/| | |
|
* | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-04-07 |
|\ \ \
| | |/
| |/| |
|
| * | | Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittests | Gisle Vanem | 2011-04-07 |
* | | | Merge remote branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-01-03 |
|\| |
| |/
|/| |
|
| * | Bump copyright statements to 2011 (0.2.2) | Nick Mathewson | 2011-01-03 |
* | | Write bidirectional connection stats in single line.•••There's no need to have a separate line conn-stats-end for the end date
and interval length with only a single line conn-bi-direct following.
| Karsten Loesing | 2010-12-03 |
* | | Refactor conn stats and add unit tests. | Karsten Loesing | 2010-12-03 |
* | | Merge remote branch 'origin/maint-0.2.2' | Nick Mathewson | 2010-11-29 |
|\| |
|
| * | Report only the top 10 ports in exit-port stats. | Karsten Loesing | 2010-11-24 |
* | | Merge branch 'nodes' | Nick Mathewson | 2010-10-13 |
|\ \ |
|
| * | | Implement policies for nodes (and for microdescriptors too) | Nick Mathewson | 2010-10-01 |
| |/ |
|
* / | Unit tests for microdescriptor cache•••May help with tracking down bug #2022
| Nick Mathewson | 2010-10-07 |
|/ |
|
* | Do away with the complexity of the network liveness detection.•••We really should ignore any timeouts that have *no* network activity for their
entire measured lifetime, now that we have the 95th percentile measurement
changes. Usually this is up to a minute, even on fast connections.
| Mike Perry | 2010-09-29 |
* | Add unit test for tor_listdir. | Nick Mathewson | 2010-08-20 |
* | Remove unused function declarations•••Also remove some #if 0'd code from the unit tests for buffers. The
code was killed in e6794e58081af773073c266e23fe3ab2ebecdb7e (5 years
ago), and is now broken anyways.
| Sebastian Hahn | 2010-08-17 |
* | Fix compilation with --with-dmalloc•••Fixes 1832; bugfix on 0.2.2.6-alpha
| Karsten Loesing | 2010-08-16 |
* | Merge commit 'sebastian/bug1831' | Nick Mathewson | 2010-08-15 |
|\ |
|
| * | Fix misplaced labels | Sebastian Hahn | 2010-08-16 |
| * | Refactor circuit_build_times_parse_state•••Remove the msg parameter to pass an error message out. This
wasn't needed and made it harder to detect a memory leak.
| Sebastian Hahn | 2010-08-16 |
* | | Make unit tests work when tests get run in subprocesses.•••Apparently the way we handled cleaning up temporary directories with
atexit() meant that when the child process exited, it would remove the
temporary directory, thus making other tests in the main process fail.
| Nick Mathewson | 2010-08-15 |
* | | Rename rep_hist_exit_stats_history in test.c too | Nick Mathewson | 2010-08-15 |
* | | Run test_stats in a subprocess. | Karsten Loesing | 2010-08-15 |
* | | Refactor exit port statistics code and add unit tests. | Karsten Loesing | 2010-08-11 |
|/ |
|
* | Fix a rare bug in rend_fn tests when the randomly generated port is 0•••Since the rend code doesn't like the port to be 0, we shouldn't generate
the port by declaring crypto_rand_int(65536); instead we should
say crypto_rand_int(65535)+1.
Diagnosed by Matt Edman; fixes bug 1808.
| Nick Mathewson | 2010-08-07 |
* | Allow enabling or disabling *Statistics while Tor is running.•••With this patch we stop scheduling when we should write statistics using a
single timestamp in run_scheduled_events(). Instead, we remember when a
statistics interval starts separately for each statistic type in geoip.c
and rephist.c. Every time run_scheduled_events() tries to write stats to
disk, it learns when it should schedule the next such attempt.
This patch also enables all statistics to be stopped and restarted at a
later time.
This patch comes with a few refactorings, some of which were not easily
doable without the patch.
| Karsten Loesing | 2010-08-05 |
* | Fix up geoip unit tests to know about ?? | Nick Mathewson | 2010-07-31 |
* | Create routerparse.h | Sebastian Hahn | 2010-07-27 |
* | Create rephist.h | Sebastian Hahn | 2010-07-27 |
* | Create policies.h | Sebastian Hahn | 2010-07-27 |
* | Create onion.h | Sebastian Hahn | 2010-07-27 |
* | Create connection_edge.h | Sebastian Hahn | 2010-07-27 |