aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Expand)AuthorAge
* In the unit tests, use "test_eq_ptr" and "test_neq_ptr" consistently•••This is part of what's needed to build without warnings on mingw64: it was warning about the cast from void* to long that happened in the places we were using test_{n,}eq on pointers. The alternative here would have been to broaden tt_int_op to accept a long long or an intptr_t, but that's less correct (since pointers aren't integers), and would hurt the portability of tinytest a little. Fixes part of 7260. Nick Mathewson2012-11-02
* Add a TOR_SOCKET_T_FORMAT construction for logging sockets.•••We need this since win64 has a 64-bit SOCKET type. Based on a patch from yayooo for 7260, forward-ported to 0.2.4. Nick Mathewson2012-11-02
* Add a PID_T_FORMAT for writing pids to logs•••This is based on code by yayooo for 7260, but: - It allows for SIZEOF_PID_T == SIZEOF_SHORT - It addresses some additional cases where we weren't getting any warnings only because we were casting pid_t to int. Nick Mathewson2012-11-02
* Remove an unused variable; part of mingw64 patch from yayoooNick Mathewson2012-11-02
* Compile (with warnings) with mingw64•••Patch from yayooo for bug 7260, forward-ported to 0.2.4. Nick Mathewson2012-11-02
* Avoid c99 designated initializers in circuitmux_ewma.c•••We still want to build on compilers w/o c99 support, such as (notoriously, shamefully) MSVC. So I'm commenting out the designated initializers in circuitmux_ewma.c. The alternative would have been to use some kind of macros to use designated initializers only when they're supported, but that's error-prone, and can lead to code having different meanings under different compilers. Bug 7286; fix on 0.2.4.4-alpha; spotted by Gisle Vanem. Nick Mathewson2012-11-02
* Rename SLIST_ENTRY to TOR_SLIST_ENTRY to fix windows compilation•••Apparently winnt.h defines a different SLIST_ENTRY of its own. Bug not in any version of Tor. Nick Mathewson2012-11-01
* Fix whitespaceNick Mathewson2012-10-31
* Add a copy of the queue(3) manpage to the git repository.•••See 7105 Nick Mathewson2012-10-30
* Merge branch 'bsd_queue' of ssh://git-rw.torproject.org/nickm/torAndrea Shepard2012-10-30
|\
| * Try refactoring channel list to use HT_ and LIST_ stuff directlyNick Mathewson2012-10-12
| * Use SIMPLEQ, not smartlist_t, for channel cell queues.•••This lets us use fewer memory allocations, and avoid O(n^2) iterations Nick Mathewson2012-10-12
| * Add a copy of OpenBSD's sys/queue.h as tor_queue.h•••There are as many divergent implementations of sys/queue.h as there are operating systems shipping it, it would seem. They have some code in common, but have drifted apart, and have added other stuff named differently. So I'm taking a relatively sane one, and hoping for the best. I'm taking OpenBSD's in particular because of the lack of external dependencies, the presence of a CIRCLEQ (we could use one of those in places), and the liberal licensing terms. I'm naming the file tor_queue.h, since historically we've run into trouble having headers with the same names as system headers (log.h, for example.) Nick Mathewson2012-10-12
* | Fix undefined reference to libm functions linking tor-fw-helper•••When configuring tor without upnp support, ie ./configure --disable-upnp, tor-fw-helper fails to link with undefined references to `ceil' and `log'. This if fixed by linking to libm. X-Gentoo-Bug: 435040 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=435040 Reported-by: Alexandre <alexandre.cortes@outlook.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Anthony G. Basile2012-10-28
* | Merge remote-tracking branch 'asn/bug6832'Nick Mathewson2012-10-27
|\ \
| * | Add a unit test for the old crash input of tor_timegm().George Kadianakis2012-09-13
* | | bump to 0.2.4.5-alpha-devRoger Dingledine2012-10-26
* | | touch-upsRoger Dingledine2012-10-26
* | | Bump the version number to 0.2.4.5-alpha•••(For real this time. It turns out that 4 and 5 are different numbers.) Nick Mathewson2012-10-25
* | | Bump version to 0.2.4.5-alphaNick Mathewson2012-10-25
* | | Merge branch 'link_negotiation_assert_024'Nick Mathewson2012-10-25
|\ \ \
| * | | Fix a remotely triggerable assertion failure (CVE-2012-2250)•••If we completed the handshake for the v2 link protocol but wound up negotiating the wong protocol version, we'd become so confused about what part of the handshake we were in that we'd promptly die with an assertion. This is a fix for CVE-2012-2250; it's a bugfix on 0.2.3.6-alpha. All servers running that version or later should really upgrade. Bug and fix from "some guy from France." I tweaked his code slightly to make it log the IP of the offending node, and to forward-port it to 0.2.4. Nick Mathewson2012-10-23
* | | | Change changes file and comment for 7189, for making it 0.2.4-only for nowNick Mathewson2012-10-24
* | | | Merge remote-tracking branch 'public/bug7189_tentative'Nick Mathewson2012-10-24
|\ \ \ \ | |/ / / |/| | |
| * | | Only disable TLS tickets when being/acting as a server.•••Fix for bug 7189. Nick Mathewson2012-10-24
| * | | Make unit test for bug7191 work with new smartlist_new() nameNick Mathewson2012-10-23
| * | | Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson2012-10-23
| |\ \ \
| | * | | Add some unit tests for smartlist_bsearch_idx() on short lists•••Conflicts: src/test/test_containers.c Andrea Shepard2012-10-23
| | * | | Fix binary search on lists of 0 or 1 element.•••The implementation we added has a tendency to crash with lists of 0 or one element. That can happen if we get a consensus vote, v2 consensus, consensus, or geoip file with 0 or 1 element. There's a DOS opportunity there that authorities could exploit against one another, and which an evil v2 authority could exploit against anything downloading v2 directory information.. This fix is minimalistic: It just adds a special-case for 0- and 1-element lists. For 0.2.4 (the current alpha series) we'll want a better patch. This is bug 7191; it's a fix on 0.2.0.10-alpha. Nick Mathewson2012-10-23
* | | | | Merge remote-tracking branch 'andrea/bug7191_v2'Nick Mathewson2012-10-23
|\ \ \ \ \
| * | | | | Add some unit tests for smartlist_bsearch_idx() on short listsAndrea Shepard2012-10-23
| * | | | | Rewrite smartlist_bsearch_idx() to not be broken for lists of length zero or ...Andrea Shepard2012-10-23
* | | | | | Merge branch 'maint-0.2.3'Roger Dingledine2012-10-23
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Let 0.2.3 clients exit to internal addresses if they want•••Clients now consider the ClientRejectInternalAddresses config option when using a microdescriptor consensus stanza to decide whether an exit relay would allow exiting to an internal address. Fixes bug 7190; bugfix on 0.2.3.1-alpha. Roger Dingledine2012-10-23
* | | | | | fix typoRoger Dingledine2012-10-23
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson2012-10-23
|\| | | | | | |/ / / / |/| | | |
| * | | | Fix parse_short_policy (bug 7192.)•••Our implementation of parse_short_policy was screwed up: it would ignore the last character of every short policy. Obviously, that's broken. This patch fixes the busted behavior, and adds a bunch of unit tests to make sure the rest of that function is okay. Fixes bug 7192; fix on 0.2.3.1-alpha. Nick Mathewson2012-10-23
| * | | | add a unit test to expose bug 7192Roger Dingledine2012-10-22
| * | | | Merge branch 'block_renegotiate_023' into maint-0.2.3Nick Mathewson2012-10-19
| |\ \ \ \
| | * | | | Discard extraneous renegotiation attempts in the v3 link protocol•••Failure to do so left us open to a remotely triggerable assertion failure. Fixes CVE-2012-2249; bugfix on 0.2.3.6-alpha. Reported by "some guy from France". Nick Mathewson2012-10-17
* | | | | | Fix more madness from the split_circuitbuild mergeNick Mathewson2012-10-22
* | | | | | Kill extraneous x from 907db008ab0007f0a02•••Looks like clang doesn't complain about this kind of thing. Spotted by Andrea. Bug not in any released version. Nick Mathewson2012-10-22
* | | | | | Merge branch 'split_circuitbuild'•••Conflicts: src/or/circuitbuild.c There was a huge-looking conflict in circuitbuild.c, but the only change that had been made to circuitbuild.c since I forked off the split_circuitbuild branch was 17442560c44e8093f9a. So I took the split_circuitbuild version of the conflicting part, and manually re-applied the change from 17442560c44e8093f9a.. Nick Mathewson2012-10-22
|\ \ \ \ \ \
| * | | | | | Move the circuit build timeout code into its own file.Nick Mathewson2012-10-15
| * | | | | | Split code for entry guards and bridges into a new module.Nick Mathewson2012-10-15
* | | | | | | bump to 0.2.4.4-alpha-devRoger Dingledine2012-10-21
* | | | | | | bump to 0.2.4.4-alphaRoger Dingledine2012-10-20
* | | | | | | Merge branch 'block_renegotiate_024'Nick Mathewson2012-10-19
|\ \ \ \ \ \ \
| * | | | | | | Discard extraneous renegotiation attempts in the v3 link protocol•••Failure to do so left us open to a remotely triggerable assertion failure. Fixes CVE-2012-2249; bugfix on 0.2.3.6-alpha. Reported by "some guy from France". This patch is a forward-port to 0.2.4, to work with the new channel logic. Nick Mathewson2012-10-17
* | | | | | | | Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson2012-10-19
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | | | |