]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
11 years agoMerge the circuit_{free,clear}_cpath functions
Nick Mathewson [Fri, 7 Feb 2014 15:50:06 +0000 (10:50 -0500)] 
Merge the circuit_{free,clear}_cpath functions

(Based on a suggestion by arma at #9777)

11 years agoMerge remote-tracking branch 'public/feature9777_024_squashed'
Nick Mathewson [Fri, 7 Feb 2014 15:47:34 +0000 (10:47 -0500)] 
Merge remote-tracking branch 'public/feature9777_024_squashed'

Conflicts:
src/or/circuitbuild.c

11 years agoDiscard circuit paths on which nobody supports ntor
Nick Mathewson [Thu, 6 Feb 2014 22:08:50 +0000 (17:08 -0500)] 
Discard circuit paths on which nobody supports ntor

Right now this accounts for about 1% of circuits over all, but if you
pick a guard that's running 0.2.3, it will be about 6% of the circuits
running through that guard.

Making sure that every circuit has at least one ntor link means that
we're getting plausibly good forward secrecy on every circuit.

This implements ticket 9777,

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Fri, 7 Feb 2014 15:38:24 +0000 (10:38 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoAttribute bug 9602 to a version.
Nick Mathewson [Fri, 7 Feb 2014 15:38:00 +0000 (10:38 -0500)] 
Attribute bug 9602 to a version.

11 years agoNULL out conns on tlschans when freeing in case channel_run_cleanup() is late; fixes...
Andrea Shepard [Thu, 6 Feb 2014 22:47:34 +0000 (14:47 -0800)] 
NULL out conns on tlschans when freeing in case channel_run_cleanup() is late; fixes bug 9602

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 6 Feb 2014 21:29:33 +0000 (16:29 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoMerge remote-tracking branch 'public/bug9716_024' into maint-0.2.4
Nick Mathewson [Thu, 6 Feb 2014 21:29:08 +0000 (16:29 -0500)] 
Merge remote-tracking branch 'public/bug9716_024' into maint-0.2.4

11 years agoMerge remote-tracking branch 'public/bug10543_024_v2'
Nick Mathewson [Thu, 6 Feb 2014 21:25:26 +0000 (16:25 -0500)] 
Merge remote-tracking branch 'public/bug10543_024_v2'

11 years agoMake the handling for usable-exit counting handle ExitNodes better
Nick Mathewson [Fri, 17 Jan 2014 18:39:04 +0000 (13:39 -0500)] 
Make the handling for usable-exit counting handle ExitNodes better

It's possible to set your ExitNodes to contains only exits that don't
have the Exit flag.  If you do that, we'll decide that 0 of your exits
are working.  Instead, in that case we should look at nodes which have
(or which might have) exit policies that don't reject everything.

Fix for bug 10543; bugfix on 0.2.4.10-alpha.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 6 Feb 2014 21:12:42 +0000 (16:12 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agochangelog for 10793
Nick Mathewson [Mon, 3 Feb 2014 15:47:49 +0000 (10:47 -0500)] 
changelog for 10793

11 years agoSome anti-forensics paranoia...
Florent Daigniere [Sun, 2 Feb 2014 18:40:30 +0000 (18:40 +0000)] 
Some anti-forensics paranoia...

sed -i 's/BN_free/BN_clear_free/g'

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 6 Feb 2014 18:27:04 +0000 (13:27 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
changes/bug10485
src/or/rephist.c
src/or/status.c

11 years agoAdd a missing include
Nick Mathewson [Thu, 6 Feb 2014 18:25:36 +0000 (13:25 -0500)] 
Add a missing include

11 years agoMerge branch 'bug10485_024' into maint-0.2.4
Nick Mathewson [Thu, 6 Feb 2014 18:24:12 +0000 (13:24 -0500)] 
Merge branch 'bug10485_024' into maint-0.2.4

11 years agoDeliver circuit handshake counts as part of the heartbeat
Nick Mathewson [Thu, 6 Feb 2014 18:03:01 +0000 (13:03 -0500)] 
Deliver circuit handshake counts as part of the heartbeat

Previously, they went out once an hour, unconditionally.

Fixes 10485; bugfix on 0.2.4.17-rc.

11 years agoRename sun to s_un in test_addr.c
Nick Mathewson [Thu, 6 Feb 2014 17:36:33 +0000 (12:36 -0500)] 
Rename sun to s_un in test_addr.c

Apparently the compiler on solaris 9 didn't like "sun" as an identifier.

Fix for bug 10565; bugfix on 0.2.5.1-alpha.

11 years agoDistcheck repair: add new python testing code to "tarballs"
Nick Mathewson [Tue, 4 Feb 2014 16:07:43 +0000 (11:07 -0500)] 
Distcheck repair: add new python testing code to "tarballs"

'make distcheck' now passes again.

11 years agotest_config.c: log which address should have failed
Nick Mathewson [Mon, 3 Feb 2014 21:21:32 +0000 (16:21 -0500)] 
test_config.c: log which address should have failed

11 years agoClean up test_hs.c: warning fix; tor_free() usage.
Nick Mathewson [Mon, 3 Feb 2014 21:12:30 +0000 (16:12 -0500)] 
Clean up test_hs.c: warning fix; tor_free() usage.

My OSX laptop rightly gave a warning because of sticking strlen() into
an int, but once I took a closer look... it appears that the strlen()
was part of a needlessly verbose implementation for tor_strdup().

While I was there, I fixed the usage of tor_free() in test_hs.c: It
checks for NULL, and it zeros its argument.  So instead of
    if (foo) {
      tor_free(foo);
      foo = NULL;
    }
we should just say
    tor_free(foo);

11 years agoTransProxyType replaces TransTPROXY option
Nick Mathewson [Mon, 3 Feb 2014 18:56:19 +0000 (13:56 -0500)] 
TransProxyType replaces TransTPROXY option

I'm making this change now since ipfw will want its own option too,
and proliferating options here isn't sensible.

(See #10582 and #10267)

11 years agoMore fixes to rip out all of the v2 directory code.
Karsten Loesing [Thu, 30 Jan 2014 11:48:49 +0000 (12:48 +0100)] 
More fixes to rip out all of the v2 directory code.

(This was a squash commit, but I forgot to squash it. Sorry! --Nick)

11 years ago10365: Close connections if the VERSIONS cell has an odd length.
rl1987 [Tue, 24 Dec 2013 19:50:58 +0000 (21:50 +0200)] 
10365: Close connections if the VERSIONS cell has an odd length.

Fixes issue 10365.

11 years agocheck-spaces fixes for test_router.c
Nick Mathewson [Mon, 3 Feb 2014 18:00:15 +0000 (13:00 -0500)] 
check-spaces fixes for test_router.c

11 years agoDefensive programming in control_event_hs_descriptor_*
Nick Mathewson [Mon, 3 Feb 2014 17:35:35 +0000 (12:35 -0500)] 
Defensive programming in control_event_hs_descriptor_*

It looks to me like these functions can never get called with NULL
arguments, but better safe than sorry.

11 years agoMerge remote-tracking branch 'houqp/hs_control'
Nick Mathewson [Mon, 3 Feb 2014 17:28:42 +0000 (12:28 -0500)] 
Merge remote-tracking branch 'houqp/hs_control'

11 years agoslownacl's pure-python curve25519 lets us test ntor everywhere.
Nick Mathewson [Mon, 3 Feb 2014 16:34:13 +0000 (11:34 -0500)] 
slownacl's pure-python curve25519 lets us test ntor everywhere.

Improvement on f308adf8382bc7e61ea05a172, where we made the ntor
unit tests run everywhere... so long as a python curve25519 module
was installed.  Now the unit tests don't require that module.

11 years agoMerge remote-tracking branch 'public/bug10758'
Nick Mathewson [Mon, 3 Feb 2014 16:05:29 +0000 (11:05 -0500)] 
Merge remote-tracking branch 'public/bug10758'

11 years agochangelog for 10793
Nick Mathewson [Mon, 3 Feb 2014 15:47:49 +0000 (10:47 -0500)] 
changelog for 10793

11 years agoSome anti-forensics paranoia...
Florent Daigniere [Sun, 2 Feb 2014 18:40:30 +0000 (18:40 +0000)] 
Some anti-forensics paranoia...

sed -i 's/BN_free/BN_clear_free/g'

11 years agoMerge branch 'feature_10582'
Nick Mathewson [Sun, 2 Feb 2014 20:48:27 +0000 (15:48 -0500)] 
Merge branch 'feature_10582'

11 years agoAdd a sandbox rule to allow IP_TRANSPARENT
Nick Mathewson [Sun, 2 Feb 2014 20:47:48 +0000 (15:47 -0500)] 
Add a sandbox rule to allow IP_TRANSPARENT

11 years agoMove the friendly warning about TPROXY and root to EPERM time
Nick Mathewson [Sun, 2 Feb 2014 20:45:00 +0000 (15:45 -0500)] 
Move the friendly warning about TPROXY and root to EPERM time

I'm doing this because:
   * User doesn't mean you're running as root, and running as root
     doesn't mean you've set User.
   * It's possible that the user has done some other
     capability-based hack to retain the necessary privileges.

11 years agoAdd support for TPROXY via new TransTPRoxy option
Nick Mathewson [Fri, 31 Jan 2014 17:59:35 +0000 (12:59 -0500)] 
Add support for TPROXY via new TransTPRoxy option

Based on patch from "thomo" at #10582.

11 years agoadd test case for node_describe_by_id
Qingping Hou [Sun, 26 Jan 2014 05:18:55 +0000 (00:18 -0500)] 
add test case for node_describe_by_id

11 years agoadd test case for hidden service async events
Qingping Hou [Wed, 18 Dec 2013 06:40:05 +0000 (01:40 -0500)] 
add test case for hidden service async events

11 years agoadd hidden service descriptor async control event
Qingping Hou [Wed, 9 Oct 2013 15:13:06 +0000 (11:13 -0400)] 
add hidden service descriptor async control event

11 years agoadd change log for hs_desc async event
Qingping Hou [Wed, 9 Oct 2013 15:47:54 +0000 (11:47 -0400)] 
add change log for hs_desc async event

11 years agoRip out all of the v2 directory code.
Nick Mathewson [Wed, 29 Jan 2014 20:17:05 +0000 (15:17 -0500)] 
Rip out all of the v2 directory code.

The remaining vestige is that we continue to publish the V2dir flag,
and that, for the controller, we continue to emit v2 directory
formats when requested.

11 years agosort the changes entries that nick added
Roger Dingledine [Mon, 27 Jan 2014 00:48:57 +0000 (19:48 -0500)] 
sort the changes entries that nick added

also replace them with the versions of the changelog stanzas from
release-0.2.4, for consistency

11 years agoDocument more coverage tricks in doc/HACKING
Nick Mathewson [Tue, 21 Jan 2014 21:44:48 +0000 (16:44 -0500)] 
Document more coverage tricks in doc/HACKING

11 years agoAdd some more options to the findMoreChanges.pl kludge-script
Nick Mathewson [Mon, 20 Jan 2014 20:47:54 +0000 (15:47 -0500)] 
Add some more options to the findMoreChanges.pl kludge-script

11 years agoNote a missing number.
Nick Mathewson [Mon, 20 Jan 2014 20:45:49 +0000 (15:45 -0500)] 
Note a missing number.

11 years agoIncorporate changes from 0.2.4.20 into 0.2.5.2 changelog-in-progress
Nick Mathewson [Mon, 20 Jan 2014 20:44:31 +0000 (15:44 -0500)] 
Incorporate changes from 0.2.4.20 into 0.2.5.2 changelog-in-progress

11 years agoMove all merged-in-0.2.4.18-rc items into 0.2.5.2-alpha changelog section.
Nick Mathewson [Mon, 20 Jan 2014 20:41:06 +0000 (15:41 -0500)] 
Move all merged-in-0.2.4.18-rc items into 0.2.5.2-alpha changelog section.

11 years agowhitespace fixes
Nick Mathewson [Fri, 17 Jan 2014 17:41:56 +0000 (12:41 -0500)] 
whitespace fixes

11 years agoCoverate in util.c: test that tor_parse_* rejects negative base.
Nick Mathewson [Mon, 13 Jan 2014 21:38:48 +0000 (16:38 -0500)] 
Coverate in util.c: test that tor_parse_* rejects negative base.

11 years agoAdd an --accel switch to run unit tests with crypto acceleration
Nick Mathewson [Mon, 13 Jan 2014 21:34:28 +0000 (16:34 -0500)] 
Add an --accel switch to run unit tests with crypto acceleration

11 years agoFix some seccomp2 issues
Nick Mathewson [Mon, 6 Jan 2014 09:27:58 +0000 (04:27 -0500)] 
Fix some seccomp2 issues

Fix for #10563.  This is a compatibility issue with libseccomp-2.1.
I guess you could call it a bugfix on 0.2.5.1?

11 years agoAdd explicit check for 0-length extend2 cells
Nick Mathewson [Fri, 3 Jan 2014 15:43:09 +0000 (10:43 -0500)] 
Add explicit check for 0-length extend2 cells

This is harmless in the Tor of today, but important for correctness.

Fixes bug 10536; bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".

11 years agoMerge remote-tracking branch 'public/bug10485'
Nick Mathewson [Tue, 24 Dec 2013 16:42:35 +0000 (11:42 -0500)] 
Merge remote-tracking branch 'public/bug10485'

11 years agoMove onion-type stats message into heartbeat
Nick Mathewson [Tue, 24 Dec 2013 16:41:48 +0000 (11:41 -0500)] 
Move onion-type stats message into heartbeat

Fix for 10485. Fix on 0.2.4.17-alpha.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Tue, 24 Dec 2013 00:01:29 +0000 (19:01 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoClarify DirPort multiplicity
Nick Mathewson [Tue, 24 Dec 2013 00:00:46 +0000 (19:00 -0500)] 
Clarify DirPort multiplicity

Fix for #10470 as suggested by arma

11 years agoand forward-port those lines too
Roger Dingledine [Sun, 22 Dec 2013 23:37:49 +0000 (18:37 -0500)] 
and forward-port those lines too

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sun, 22 Dec 2013 22:26:25 +0000 (17:26 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoMerge branch 'bug10465' into maint-0.2.4
Nick Mathewson [Sun, 22 Dec 2013 22:20:22 +0000 (17:20 -0500)] 
Merge branch 'bug10465' into maint-0.2.4

11 years agoFix automapping to ipv6
Nick Mathewson [Sun, 22 Dec 2013 13:38:36 +0000 (08:38 -0500)] 
Fix automapping to ipv6

Bugfix on 0.2.4.7-alpha; fixes bug 10465.

11 years agoforward-port recent changelogs and release notes
Roger Dingledine [Sun, 22 Dec 2013 09:30:06 +0000 (04:30 -0500)] 
forward-port recent changelogs and release notes

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sun, 22 Dec 2013 02:16:06 +0000 (21:16 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoMerge branch 'bug10456' into maint-0.2.4
Nick Mathewson [Sun, 22 Dec 2013 02:15:39 +0000 (21:15 -0500)] 
Merge branch 'bug10456' into maint-0.2.4

11 years agoFix a logic error in circuit_stream_is_being_handled.
Nick Mathewson [Sat, 21 Dec 2013 15:15:09 +0000 (10:15 -0500)] 
Fix a logic error in circuit_stream_is_being_handled.

When I introduced the unusable_for_new_circuits flag in
62fb209d837f3f551, I had a spurious ! in the
circuit_stream_is_being_handled loop.  This made us decide that
non-unusable circuits (that is, usable ones) were the ones to avoid,
and caused it to launch a bunch of extra circuits.

Fixes bug 10456; bugfix on 0.2.4.12-alpha.

11 years agoMerge remote-tracking branch 'linus/bug10324'
Nick Mathewson [Fri, 20 Dec 2013 16:40:21 +0000 (11:40 -0500)] 
Merge remote-tracking branch 'linus/bug10324'

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 19 Dec 2013 03:04:21 +0000 (22:04 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
src/common/crypto.c

11 years agoMerge branch 'bug10402_redux_024' into maint-0.2.4
Nick Mathewson [Thu, 19 Dec 2013 02:55:06 +0000 (21:55 -0500)] 
Merge branch 'bug10402_redux_024' into maint-0.2.4

11 years agoNever allow OpenSSL engines to replace the RAND_SSLeay method
Nick Mathewson [Wed, 18 Dec 2013 16:49:44 +0000 (11:49 -0500)] 
Never allow OpenSSL engines to replace the RAND_SSLeay method

This fixes bug 10402, where the rdrand engine would use the rdrand
instruction, not as an additional entropy source, but as a replacement
for the entire userspace PRNG.  That's obviously stupid: even if you
don't think that RDRAND is a likely security risk, the right response
to an alleged new alleged entropy source is never to throw away all
previously used entropy sources.

Thanks to coderman and rl1987 for diagnosing and tracking this down.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Tue, 17 Dec 2013 18:54:02 +0000 (13:54 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

11 years agoMerge branch 'bug10423' into maint-0.2.4
Nick Mathewson [Tue, 17 Dec 2013 18:53:11 +0000 (13:53 -0500)] 
Merge branch 'bug10423' into maint-0.2.4

11 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Tue, 17 Dec 2013 18:18:00 +0000 (13:18 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
src/or/microdesc.c

Conflict because one change was on line adjacent to line where
01206893 got fixed.

11 years agoMerge remote-tracking branch 'public/bug10409_023' into maint-0.2.4
Nick Mathewson [Tue, 17 Dec 2013 18:15:45 +0000 (13:15 -0500)] 
Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4

11 years agoAvoid double-free on failure to dump_descriptor() a cached md
Nick Mathewson [Tue, 17 Dec 2013 18:12:52 +0000 (13:12 -0500)] 
Avoid double-free on failure to dump_descriptor() a cached md

This is a fix for 10423, which was introducd in caa0d15c in 0.2.4.13-alpha.

Spotted by bobnomnom.

11 years agoAvoid free()ing from an mmap on corrupted microdesc cache
Nick Mathewson [Mon, 16 Dec 2013 18:00:15 +0000 (13:00 -0500)] 
Avoid free()ing from an mmap on corrupted microdesc cache

The 'body' field of a microdesc_t holds a strdup()'d value if the
microdesc's saved_location field is SAVED_IN_JOURNAL or
SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the
microdesc is SAVED_IN_CACHE.  But we weren't setting that field
until a while after we parsed the microdescriptor, which left an
interval where microdesc_free() would try to free() the middle of
the mmap().

This patch also includes a regression test.

This is a fix for #10409; bugfix on 0.2.2.6-alpha.

11 years agoMake tor-gencert create 2048 bit signing keys.
Linus Nordberg [Thu, 12 Dec 2013 16:39:22 +0000 (17:39 +0100)] 
Make tor-gencert create 2048 bit signing keys.

12 years agoFix get_configured_bridge_by_addr_port_digest(.,.,NULL)
rl1987 [Sun, 8 Dec 2013 18:42:33 +0000 (20:42 +0200)] 
Fix get_configured_bridge_by_addr_port_digest(.,.,NULL)

The old behavior was that NULL matched only bridges without known
identities; the correct behavior is that NULL should match all
bridges (assuming that their addr:port matches).

12 years agoMerge remote-tracking branch 'public/bug10131_024'
Nick Mathewson [Mon, 9 Dec 2013 16:06:20 +0000 (11:06 -0500)] 
Merge remote-tracking branch 'public/bug10131_024'

12 years agoRemove a check in channeltls.c that could never fail.
Nick Mathewson [Mon, 9 Dec 2013 16:02:34 +0000 (11:02 -0500)] 
Remove a check in channeltls.c that could never fail.

We were checking whether a 8-bit length field had overflowed a
503-byte buffer. Unless somebody has found a way to store "504" in a
single byte, it seems unlikely.

Fix for 10313 and 9980. Based on a pach by Jared L Wong. First found
by David Fifield with STACK.

12 years agoSet CREATE_NO_WINDOW in tor_spawn_background.
David Fifield [Thu, 5 Dec 2013 04:56:28 +0000 (04:56 +0000)] 
Set CREATE_NO_WINDOW in tor_spawn_background.

This flag prevents the creation of a console window popup on Windows. We
need it for pluggable transport executables--otherwise you get blank
console windows when you launch the 3.x browser bundle with transports
enabled.

http://msdn.microsoft.com/en-us/library/ms684863.aspx#CREATE_NO_WINDOW

The browser bundles that used Vidalia used to set this flag when
launching tor itself; it was apparently inherited by the pluggable
transports launched by tor. In the 3.x bundles, tor is launched by some
JavaScript code, which doesn't have the ability to set CREATE_NO_WINDOW.
tor itself is now being compiled with the -mwindows option, so that it
is a GUI application, not a console application, and doesn't show a
console window in any case. This workaround doesn't work for pluggable
transports, because they need to be able to write control messages to
stdout.

https://trac.torproject.org/projects/tor/ticket/9444#comment:30

12 years agoMerge branch 'bug4677'
Nick Mathewson [Mon, 25 Nov 2013 15:56:52 +0000 (10:56 -0500)] 
Merge branch 'bug4677'

12 years agoRestore prop198 behavior from 4677 patch
Nick Mathewson [Mon, 25 Nov 2013 15:53:37 +0000 (10:53 -0500)] 
Restore prop198 behavior from 4677 patch

The previous commit from piet would have backed out some of proposal
198 and made servers built without the V2 handshake not use the
unrestricted cipher list from prop198.

Bug not in any released Tor.

12 years agoRestore ability to build with V2_HANDSHAKE_SERVER
Nick Mathewson [Mon, 25 Nov 2013 15:45:20 +0000 (10:45 -0500)] 
Restore ability to build with V2_HANDSHAKE_SERVER

Fixes bug 4677; bugfix on 0.2.3.2-alpha. Fix by "piet".

12 years agoAvoid warning about impossible check for flags & 0
Nick Mathewson [Fri, 22 Nov 2013 17:42:05 +0000 (12:42 -0500)] 
Avoid warning about impossible check for flags & 0

Fixes CID 743381

12 years agoOnly update view of micrdescriptor pos if pos is fetchable.
Nick Mathewson [Fri, 22 Nov 2013 17:38:58 +0000 (12:38 -0500)] 
Only update view of micrdescriptor pos if pos is fetchable.

It's conceivable (but probably impossible given our code) that lseek
could return -1 on an error; when that happens, we don't want off to
become -1.

Fixes CID 1035124.

12 years agoAdd checks to prevent memcmp(.,.,negative) in tests (CID 1064417)
Nick Mathewson [Fri, 22 Nov 2013 17:33:25 +0000 (12:33 -0500)] 
Add checks to prevent memcmp(.,.,negative) in tests (CID 1064417)

12 years agoFix another unit test memory leak. CID1087949,CID1087950.
Nick Mathewson [Fri, 22 Nov 2013 17:27:41 +0000 (12:27 -0500)] 
Fix another unit test memory leak. CID1087949,CID1087950.

12 years agoFix a bunch of coverity-spotted unit test resource leaks
Nick Mathewson [Fri, 22 Nov 2013 17:21:14 +0000 (12:21 -0500)] 
Fix a bunch of coverity-spotted unit test resource leaks

CIDs: 1130994113099311309921130991

12 years agoRemove needless fd var from test. CID 1130989.
Nick Mathewson [Fri, 22 Nov 2013 17:16:17 +0000 (12:16 -0500)] 
Remove needless fd var from test. CID 1130989.

12 years agoHandle unlikely negative time in tor_log_err_sigsafe
Nick Mathewson [Fri, 22 Nov 2013 17:14:11 +0000 (12:14 -0500)] 
Handle unlikely negative time in tor_log_err_sigsafe

Coverity wants this; CID 1130990.

12 years agoWhitespace cleanup
Nick Mathewson [Wed, 20 Nov 2013 16:05:00 +0000 (11:05 -0500)] 
Whitespace cleanup

12 years agoMerge remote-tracking branch 'sysrqb/bug9859_5'
Nick Mathewson [Wed, 20 Nov 2013 16:03:37 +0000 (11:03 -0500)] 
Merge remote-tracking branch 'sysrqb/bug9859_5'

12 years agoFix crypto/digests test
Nick Mathewson [Mon, 18 Nov 2013 18:33:29 +0000 (13:33 -0500)] 
Fix crypto/digests test

12 years agoMerge branch 'finish_prop157'
Nick Mathewson [Mon, 18 Nov 2013 18:27:06 +0000 (13:27 -0500)] 
Merge branch 'finish_prop157'

12 years agoTweak #10162 documentation a bit
Nick Mathewson [Mon, 18 Nov 2013 18:26:58 +0000 (13:26 -0500)] 
Tweak #10162 documentation a bit

12 years agoAdd a _GNU_SOURCE definition to backtrace.c to fix compilation
Nick Mathewson [Mon, 18 Nov 2013 18:05:23 +0000 (13:05 -0500)] 
Add a _GNU_SOURCE definition to backtrace.c to fix compilation

12 years agoWhoops; changes files belong in changes.
Nick Mathewson [Mon, 18 Nov 2013 17:49:12 +0000 (12:49 -0500)] 
Whoops; changes files belong in changes.

12 years agoWhoops -- add missing defined().
Nick Mathewson [Mon, 18 Nov 2013 16:36:23 +0000 (11:36 -0500)] 
Whoops -- add missing defined().

12 years agoMake header includes match declarations in pc_from_ucontext.m4
Nick Mathewson [Mon, 18 Nov 2013 16:34:15 +0000 (11:34 -0500)] 
Make header includes match declarations in pc_from_ucontext.m4

With any luck, this will clean up errors where we detect that
REG_{EIP,RIP} is present in autoconf, but when we go to include it,
it isn't there.

12 years agoFix compilation under openssl 0.9.8
Nick Mathewson [Mon, 18 Nov 2013 16:23:54 +0000 (11:23 -0500)] 
Fix compilation under openssl 0.9.8

It's not nice to talk about NID_aes_{128,256}_{ctr,gcm} when they
don't exist.

Fix on 84458b79a78ea7e26820bf0; bug not in any released Tor.

12 years agoRemove 'struct timeval now' that was shadowing 'struct timeval now'.
Nick Mathewson [Mon, 18 Nov 2013 16:20:35 +0000 (11:20 -0500)] 
Remove 'struct timeval now' that was shadowing 'struct timeval now'.

This was a mistake in the merge commit 7a2b30fe16eacc040b3dd11. It
would have made the CellStatistics code give completely bogus
results. Bug not in any released Tor.

12 years agoFix whitespace
Nick Mathewson [Mon, 18 Nov 2013 16:13:40 +0000 (11:13 -0500)] 
Fix whitespace