]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 21 Jan 2013 18:24:10 +0000 (18:24 +0000)]
More of
b30d06255c24165 for #6826: fix compat_libevent compilation
It looks like there was a compilation error for 6826 on some
platforms. Removing even more now-uncallable code to handle detecting
libevent versions before 1.3e.
Fixes bug 8012; bug not in any released Tor.
Nick Mathewson [Fri, 18 Jan 2013 23:00:51 +0000 (18:00 -0500)]
Remove -v flag from autoreconf by default
You can get it back by saying ./autogen.sh -v
Patch from onizuka; for bug 4664.
This isn't a complete fix, since starting from a clean checkout still
reports that it's installing stuff
Nick Mathewson [Thu, 17 Jan 2013 21:08:28 +0000 (16:08 -0500)]
Replace base-{16,32,64} with base{16,32,64} in the code
Patch from onizuka generated with
find ./ -type f -perm -u+rw -exec sed -ri 's/(Base)-(16|32|64)/\1\2/gi' {} \;
Fixes issue 6875 on Tor.
Nick Mathewson [Thu, 17 Jan 2013 20:54:51 +0000 (15:54 -0500)]
Merge branch '024_msvc_more'
Nick Mathewson [Thu, 17 Jan 2013 20:54:21 +0000 (15:54 -0500)]
Another msvc changes entry
Nick Mathewson [Thu, 17 Jan 2013 19:44:26 +0000 (14:44 -0500)]
For now, always use donna32 on msvc
Nick Mathewson [Thu, 17 Jan 2013 19:38:52 +0000 (14:38 -0500)]
Add ntor-related modules to the Makefiles.nmake
Nick Mathewson [Thu, 17 Jan 2013 19:38:15 +0000 (14:38 -0500)]
Fix an MSVC warning in onion.h prototypes
Nick Mathewson [Thu, 17 Jan 2013 19:40:12 +0000 (14:40 -0500)]
Even more code-removal for 6826
(Pull on a thread and the whole sweater unravels.)
Nick Mathewson [Thu, 17 Jan 2013 15:01:22 +0000 (10:01 -0500)]
Add a missing part of bug 7311's makefile.nmake tweaks
Fix by "ultramage".
This already has a changes entry.
Nick Mathewson [Thu, 17 Jan 2013 14:23:07 +0000 (09:23 -0500)]
Merge branch 'bug6826_squashed'
Nick Mathewson [Wed, 16 Jan 2013 19:31:01 +0000 (14:31 -0500)]
Drop detection logic for pre-1.3 busted libevents
This won't actually break them any worse than they were broken before:
it just removes a set of warnings that nobody was actually seeing, I
hope.
Closes 6826
Nick Mathewson [Thu, 17 Jan 2013 14:20:24 +0000 (09:20 -0500)]
Merge remote-tracking branch 'public/bug6302'
Jérémy Bobbio [Fri, 6 Jul 2012 13:31:47 +0000 (15:31 +0200)]
Implement proposal 204: ignore subdomains in hidden service addresses
The implementation is pretty straightforward: parse_extended_hostname() is
modified to drop any leading components from an address like
'foo.
aaaaaaaaaaaaaaaa .onion'.
Nick Mathewson [Thu, 17 Jan 2013 03:32:12 +0000 (22:32 -0500)]
Merge branch '024_msvc_squashed'
Conflicts:
src/or/or.h
srcwin32/orconfig.h
Nick Mathewson [Wed, 19 Dec 2012 21:51:53 +0000 (16:51 -0500)]
Fix an instance of snprintf; don't use _snprintf directly
Nick Mathewson [Tue, 18 Dec 2012 20:09:13 +0000 (15:09 -0500)]
Changes files for 024_msvc branch
Nick Mathewson [Tue, 18 Dec 2012 19:45:12 +0000 (14:45 -0500)]
When building with MSVC, call every enum bitfield unsigned
Fixes bug 7305.
Nick Mathewson [Tue, 18 Dec 2012 19:21:13 +0000 (14:21 -0500)]
Add HAVE_EVENT_BASE_LOOPEXIT to win32/orconfig.h
Fix for bug 7308
Nick Mathewson [Tue, 18 Dec 2012 18:59:59 +0000 (13:59 -0500)]
Add more test modules for nmake makefiles
Nick Mathewson [Tue, 18 Dec 2012 18:58:11 +0000 (13:58 -0500)]
Try to build tinytest.obj from the right sources
Nick Mathewson [Tue, 18 Dec 2012 18:41:11 +0000 (13:41 -0500)]
use the /Fe flag with msvc
Fixes 7309
Nick Mathewson [Tue, 18 Dec 2012 18:38:01 +0000 (13:38 -0500)]
Add missing targets to src/test/Makefile.nmake. Fix for 7316
Nick Mathewson [Tue, 18 Dec 2012 18:34:17 +0000 (13:34 -0500)]
Add HAVE_EVENT2_DNS_H to MSVC orconfig.h
Fix for bug 7313
Nick Mathewson [Tue, 18 Dec 2012 18:33:15 +0000 (13:33 -0500)]
Fix a const warning under msvc
Nick Mathewson [Tue, 18 Dec 2012 18:24:19 +0000 (13:24 -0500)]
Add clean target and test subdir to makefile.nmake
Nick Mathewson [Tue, 18 Dec 2012 18:20:32 +0000 (13:20 -0500)]
Add missing objects to Makefile.nmake
Nick Mathewson [Tue, 18 Dec 2012 18:16:48 +0000 (13:16 -0500)]
Add missing includes and libs to makefile.nmake
Fixes bugs 7312 and 7310.
Nick Mathewson [Tue, 18 Dec 2012 18:10:16 +0000 (13:10 -0500)]
Define SIZEOF_INTPTR_T when defining replacement intptr_t
Fixes bug 7669
Nick Mathewson [Wed, 16 Jan 2013 22:02:46 +0000 (17:02 -0500)]
Merge branch 'bug5285_v2'
Nick Mathewson [Wed, 11 Apr 2012 16:59:57 +0000 (12:59 -0400)]
Aftermath of isin->contains renaming
Fix wide lines and comments, and add a changes file
Nick Mathewson [Wed, 11 Apr 2012 16:50:50 +0000 (12:50 -0400)]
Rename *_isin to *_contains
This is an automatically generated commit, from the following perl script,
run with the options "-w -i -p".
s/smartlist_string_num_isin/smartlist_contains_int_as_string/g;
s/smartlist_string_isin((?:_case)?)/smartlist_contains_string$1/g;
s/smartlist_digest_isin/smartlist_contains_digest/g;
s/smartlist_isin/smartlist_contains/g;
s/digestset_isin/digestset_contains/g;
Nick Mathewson [Wed, 16 Jan 2013 21:49:39 +0000 (16:49 -0500)]
Remove two extrneous semicolons in dirserv.c
In
6fbdf635 we added a couple of statements like:
if (test) {
...
};
The extraneous semicolons there get flagged as worrisome empty
statements by the cparser library, so let's fix them.
Patch by Christian Grothoff; fixes bug 7115.
Nick Mathewson [Wed, 16 Jan 2013 21:32:38 +0000 (16:32 -0500)]
Definx HAVE_EVENT_BASE_LOOPEXITin msvc orconfig.h
Fixes bug 7308; bugfix on no released Tor, since we haven't actually built
right on MSVC in ages.
Nick Mathewson [Wed, 16 Jan 2013 20:30:20 +0000 (15:30 -0500)]
Refactor: Use SOCK_ERRNO to avoid some #ifdef _WIN32s
Fixes ticket 6302
Nick Mathewson [Wed, 16 Jan 2013 18:56:10 +0000 (13:56 -0500)]
Merge branch 'bug7972'
Nick Mathewson [Wed, 16 Jan 2013 18:07:52 +0000 (13:07 -0500)]
Actually link against nacl when we want to use it
Fixes more of bug 7972
Nick Mathewson [Wed, 16 Jan 2013 16:43:36 +0000 (11:43 -0500)]
changes file for 7896
Nick Mathewson [Wed, 16 Jan 2013 16:41:37 +0000 (11:41 -0500)]
Merge remote-tracking branch 'asn/bug7896'
Nick Mathewson [Wed, 16 Jan 2013 15:29:11 +0000 (10:29 -0500)]
Check for nacl headers in nacl/ subdir
Fix for bug 7972
Nick Mathewson [Wed, 16 Jan 2013 06:56:35 +0000 (01:56 -0500)]
Add a new automake dropping ("test-driver") to .gitignore
Nick Mathewson [Wed, 16 Jan 2013 06:54:56 +0000 (01:54 -0500)]
Update the copyright date to 201.
Nick Mathewson [Tue, 15 Jan 2013 21:33:53 +0000 (16:33 -0500)]
Forward-port fix for 7889
Nick Mathewson [Tue, 15 Jan 2013 21:30:26 +0000 (16:30 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.3'
Nick Mathewson [Tue, 15 Jan 2013 21:30:07 +0000 (16:30 -0500)]
Merge branch 'bug7889_023' into maint-0.2.3
Nick Mathewson [Tue, 15 Jan 2013 21:01:38 +0000 (16:01 -0500)]
Merge branch 'small_typo_fixes'
Nick Mathewson [Tue, 15 Jan 2013 21:01:02 +0000 (16:01 -0500)]
Bump to 0.2.4.9-alpha-dev
Roger Dingledine [Tue, 15 Jan 2013 20:40:17 +0000 (15:40 -0500)]
Clean up odds and ends
Roger Dingledine [Tue, 15 Jan 2013 16:57:34 +0000 (11:57 -0500)]
bump to 0.2.4.9-alpha
Roger Dingledine [Tue, 15 Jan 2013 16:54:52 +0000 (11:54 -0500)]
fold in new change stanza
Nick Mathewson [Tue, 15 Jan 2013 05:41:09 +0000 (00:41 -0500)]
Fix handling of ntor handshakes received via CREATE cells
Fixes bug 7959; bugfix on 0.2.4.8-alpha.
Nick Mathewson [Tue, 15 Jan 2013 05:25:07 +0000 (00:25 -0500)]
Better log message to diagnose #7959
Nick Mathewson [Tue, 15 Jan 2013 05:24:19 +0000 (00:24 -0500)]
Bump version to 0.2.4.8-alpha-dev
Roger Dingledine [Mon, 14 Jan 2013 23:52:42 +0000 (18:52 -0500)]
bump to 0.2.4.8-alpha
Roger Dingledine [Mon, 14 Jan 2013 23:46:32 +0000 (18:46 -0500)]
finish poking at the changelog
Nick Mathewson [Mon, 14 Jan 2013 19:41:59 +0000 (14:41 -0500)]
Revert junk accidentally included with "start folding in the changes entries"
Looks like Roger's debugging code wanted to take a tour of the world
outside his sandbox.
This reverts part of commit
19d37202362c0298ae2f3954b0065ccfcef0dbda .
Nick Mathewson [Mon, 14 Jan 2013 19:24:53 +0000 (14:24 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.3'
Nick Mathewson [Mon, 14 Jan 2013 19:24:19 +0000 (14:24 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 14 Jan 2013 19:02:13 +0000 (14:02 -0500)]
Reject create/begin/etc cells with {circ,stream}ID 0.
Otherwise, it's possible to create streams or circuits with these
bogus IDs, leading to orphaned circuits or streams, or to ones that
can cause bandwidth DOS problems.
Fixes bug 7889; bugfix on all released Tors.
Roger Dingledine [Mon, 14 Jan 2013 18:34:59 +0000 (13:34 -0500)]
start folding in the changes entries
Nick Mathewson [Mon, 14 Jan 2013 17:32:00 +0000 (12:32 -0500)]
Merge branch 'bug7869'
Nick Mathewson [Mon, 14 Jan 2013 02:48:33 +0000 (21:48 -0500)]
Merge remote-tracking branch 'mikeperry/bug7691-rebased'
Nick Mathewson [Mon, 14 Jan 2013 02:43:53 +0000 (21:43 -0500)]
Merge branch 'bug7935'
Nick Mathewson [Sat, 12 Jan 2013 00:27:45 +0000 (16:27 -0800)]
Handle EWOULDBLOCK as EAGAIN if they happen to be different.
Fixes bug 7935. Reported by 'oftc_must_be_destroyed'.
George Kadianakis [Wed, 9 Jan 2013 13:52:35 +0000 (15:52 +0200)]
Mention name of the transport used when we learn the fpr of a bridge.
Mike Perry [Wed, 9 Jan 2013 02:07:34 +0000 (18:07 -0800)]
Bug 7691 review fixes.
Also add in the random nonce generation.
Mike Perry [Wed, 9 Jan 2013 01:19:15 +0000 (17:19 -0800)]
Bug 7341 code review fixes.
Mike Perry [Wed, 12 Dec 2012 19:53:18 +0000 (11:53 -0800)]
Bug 7691: Send a probe cell down certain types of circs.
In general, if we tried to use a circ for a stream, but then decided to place
that stream on a different circuit, we need to probe the original circuit
before deciding it was a "success".
We also need to do the same for cannibalized circuits that go unused.
Mike Perry [Sat, 8 Dec 2012 02:57:51 +0000 (18:57 -0800)]
Fix bug 7341.
Fix cannibalize, rend circ and intro circ timeout handling.
Nick Mathewson [Sun, 6 Jan 2013 03:53:32 +0000 (22:53 -0500)]
Make the = at the end of ntor-onion-key optional.
Makes bug 7869 more easily fixable if we ever choose to do so.
Karsten Loesing [Sat, 5 Jan 2013 07:18:26 +0000 (08:18 +0100)]
Update to the January 2013 GeoIP database.
Nick Mathewson [Thu, 3 Jan 2013 17:45:50 +0000 (12:45 -0500)]
Whoops; make that unit test actually pass :/
Nick Mathewson [Thu, 3 Jan 2013 17:38:44 +0000 (12:38 -0500)]
Add a unit test for the curve25519 keypair persistence functions
Nick Mathewson [Thu, 3 Jan 2013 16:52:41 +0000 (11:52 -0500)]
Merge branch 'ntor-resquashed'
Conflicts:
src/or/cpuworker.c
src/or/or.h
src/test/bench.c
Nick Mathewson [Wed, 26 Dec 2012 03:43:01 +0000 (22:43 -0500)]
Check all crypto_rand return values for ntor.
Nick Mathewson [Wed, 26 Dec 2012 03:38:20 +0000 (22:38 -0500)]
Complete all DOCDOC entries from the ntor branch
Nick Mathewson [Wed, 26 Dec 2012 03:25:09 +0000 (22:25 -0500)]
Use safe_mem_is_zero for checking curve25519 output for 0-ness
This should make the intent more explicit. Probably needless, though.
Nick Mathewson [Wed, 26 Dec 2012 03:22:07 +0000 (22:22 -0500)]
Implement a constant-time safe_mem_is_zero.
Nick Mathewson [Mon, 17 Dec 2012 04:21:27 +0000 (23:21 -0500)]
changes file for the ntor branch
Nick Mathewson [Sat, 8 Dec 2012 06:19:15 +0000 (01:19 -0500)]
Document UseNTorHandshake
Nick Mathewson [Sat, 8 Dec 2012 05:57:19 +0000 (00:57 -0500)]
Add new ntor bits to gitignore
Nick Mathewson [Sat, 8 Dec 2012 05:52:44 +0000 (00:52 -0500)]
Add reference implementation for ntor, plus compatibility test
Before I started coding ntor in C, I did another one in Python.
Turns out, they interoperate just fine.
Nick Mathewson [Fri, 7 Dec 2012 18:40:21 +0000 (13:40 -0500)]
ntor: Don't fail fast server-side on an unrecognized KEYID(B)
Nick Mathewson [Fri, 7 Dec 2012 17:45:46 +0000 (12:45 -0500)]
Update our copy of curve25519-donna-c64.
This now matches upstream at version
59a896970a1ad0a6cd7d0 .
(Adam took my patches.)
Nick Mathewson [Thu, 6 Dec 2012 17:08:04 +0000 (12:08 -0500)]
Use always_inline only with inline; otherwise GCC gripes
Nick Mathewson [Thu, 6 Dec 2012 17:07:58 +0000 (12:07 -0500)]
Make libcurve25519_donna get built as a .a
This lets us give it compiler flags differing from the rest of
libor-crypto.a
Nick Mathewson [Thu, 6 Dec 2012 16:49:39 +0000 (11:49 -0500)]
Fix an unused-variable warning
Nick Mathewson [Thu, 6 Dec 2012 06:53:29 +0000 (01:53 -0500)]
Enable the ntor handshake on the client side.
"works for me"
Nick Mathewson [Thu, 6 Dec 2012 05:28:01 +0000 (00:28 -0500)]
Enable handling of create2/extend2/created2/extended2
Nick Mathewson [Thu, 6 Dec 2012 05:21:24 +0000 (00:21 -0500)]
Don't check create cells too much when we're relaying them
We want to sanity-check our own create cells carefully, and other
people's loosely.
Nick Mathewson [Thu, 6 Dec 2012 04:59:12 +0000 (23:59 -0500)]
Implement scheme to allow ntor requests/responses via older servers
Nick Mathewson [Thu, 6 Dec 2012 04:44:27 +0000 (23:44 -0500)]
Use created_cell_format where appropriate
Nick Mathewson [Thu, 6 Dec 2012 04:07:49 +0000 (23:07 -0500)]
Use new wrappers for making,sending,processing create/extend cells
Nick Mathewson [Thu, 6 Dec 2012 03:34:49 +0000 (22:34 -0500)]
Teach cpuworker and others about create_cell_t and friends
The unit of work sent to a cpuworker is now a create_cell_t; its
response is now a created_cell_t. Several of the things that call or
get called by this chain of logic now take create_cell_t or
created_cell_t too.
Since all cpuworkers are forked or spawned by Tor, they don't need a
stable wire protocol, so we can just send structs. This saves us some
insanity, and helps p
Nick Mathewson [Wed, 5 Dec 2012 21:47:22 +0000 (16:47 -0500)]
Code to parse and format CREATE{,2,_FAST} cells and their allies
As elsewhere, it makes sense when adding or extending a cell type to
actually make the code to parse it into a separate tested function.
This commit doesn't actually make anything use these new functions;
that's for a later commit.
Nick Mathewson [Wed, 5 Dec 2012 02:39:54 +0000 (21:39 -0500)]
Rename handshake_digest to rend_circ_nonce
The handshake_digest field was never meaningfully a digest *of* the
handshake, but rather is a digest *from* the handshake that we exapted
to prevent replays of ESTABLISH_INTRO cells. The ntor handshake will
generate it as more key material rather than taking it from any part
of the circuit handshake reply..
Nick Mathewson [Wed, 5 Dec 2012 02:27:07 +0000 (21:27 -0500)]
Massive refactoring of the various handshake types
The three handshake types are now accessed from a unified interface;
their state is abstracted from the rest of the cpath state, and so on.
Nick Mathewson [Tue, 4 Dec 2012 21:51:31 +0000 (16:51 -0500)]
Refactor the CREATE_FAST handshake code to match the others.
Nick Mathewson [Tue, 4 Dec 2012 21:09:52 +0000 (16:09 -0500)]
Split onion.[ch] into onion{,_fast,_tap}.[ch]
I'm going to want a generic "onionskin" type and set of wrappers, and
for that, it will be helpful to isolate the different circuit creation
handshakes. Now the original handshake is in onion_tap.[ch], the
CREATE_FAST handshake is in onion_fast.[ch], and onion.[ch] now
handles the onion queue.
This commit does nothing but move code and adjust header files.
Nick Mathewson [Tue, 4 Dec 2012 20:58:18 +0000 (15:58 -0500)]
Wrangle curve25519 onion keys: generate, store, load, publish, republish
Here we try to handle curve25519 onion keys from generating them,
loading and storing them, publishing them in our descriptors, putting
them in microdescriptors, and so on.
This commit is untested and probably buggy like whoa