Nick Mathewson
6d728ba880
Merge remote-tracking branch 'public/bug14013_024' into maint-0.2.5
2014-12-22 15:58:49 -05:00
Nick Mathewson
47760c7ba5
When decoding a base-{16,32,64} value, clear the target buffer first
...
This is a good idea in case the caller stupidly doesn't check the
return value from baseX_decode(), and as a workaround for the
current inconsistent API of base16_decode.
Prevents any fallout from bug 14013.
2014-12-22 12:56:35 -05:00
Nick Mathewson
03d2df62f6
Fix a bunch of memory leaks in the unit tests. Found with valgrind
2014-12-22 12:27:26 -05:00
Nick Mathewson
6830667d58
Increase bandwidth usage report interval to 4 hours.
2014-12-22 12:24:13 -05:00
Nick Mathewson
b94cb401d2
Coverity complained that we were not checking this return value
2014-12-22 11:13:11 -05:00
Nick Mathewson
13f26f41e4
Fix some coverity issues in the unit tests
2014-12-22 11:13:01 -05:00
Nick Mathewson
ec07c3c5c5
Reflow the changelog again
2014-12-22 10:54:09 -05:00
Nick Mathewson
fe0ecdcfed
Rewrite some changelog entries
2014-12-22 10:53:52 -05:00
Nick Mathewson
8f242a72e7
Relabel some changelog items; re-sort them into place
2014-12-22 10:12:43 -05:00
Nick Mathewson
c12b2e1cce
minor teaks fo the changelog
2014-12-22 10:06:56 -05:00
Nick Mathewson
0f5303f08a
Auto-reformat the changelog for 0.2.6.2-alpha
2014-12-22 10:03:19 -05:00
Nick Mathewson
f645564778
Start on a changelog for 0.2.6.2-alpha
2014-12-22 10:02:18 -05:00
Nick Mathewson
845d92295f
have lintchanges check header format.
2014-12-22 10:00:34 -05:00
Nick Mathewson
441a481bb8
Resolve issues in changes files
2014-12-22 09:49:33 -05:00
Nick Mathewson
8b532a8c81
Short python script to lint the changes files
2014-12-22 09:34:55 -05:00
Nick Mathewson
1c05dfd0b6
Merge branch 'ticket7356_squashed'
2014-12-21 14:48:53 -05:00
rl1987
af1469b9a3
Fixing mistake in comment.
2014-12-21 14:48:39 -05:00
rl1987
ed0b46e711
Changes file for 7356
2014-12-21 14:48:39 -05:00
rl1987
f6cc4d35b0
Using channel state lookup macros in connection_or.c.
2014-12-21 14:48:39 -05:00
rl1987
fc7d5e598b
Using CHANNEL_FINISHED macro in connection.c
2014-12-21 14:48:38 -05:00
rl1987
551221bad6
Using channel state lookup macros in circuitlist.c.
2014-12-21 14:48:38 -05:00
rl1987
7473160765
Using CHANNEL_IS_OPEN macro in circuitbuild.c
2014-12-21 14:48:38 -05:00
rl1987
5a7dd44d6e
Using channel state lookup macros in circuitbias.c.
2014-12-21 14:48:38 -05:00
rl1987
668edc5132
Using channel state lookup macros in channeltls.c
2014-12-21 14:48:38 -05:00
rl1987
032d44226e
Use channel state lookup macros in channel.c
2014-12-21 14:48:38 -05:00
rl1987
b884ae6d98
Using macros and inline function for quick lookup of channel state.
2014-12-21 14:48:38 -05:00
Nick Mathewson
647a90b9b3
Merge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'
2014-12-21 13:37:40 -05:00
teor
e40591827e
Make log bufer 10k, not 9.78k.
2014-12-21 13:36:06 -05:00
teor
769fc5af09
Fix a comment in tor_addr_parse
2014-12-21 13:35:42 -05:00
teor
6fad395300
Fix clang warning, IPv6 address comment, buffer size typo
...
The address of an array in the middle of a structure will
always be non-NULL. clang recognises this and complains.
Disable the tautologous and redundant check to silence
this warning.
Fixes bug 14001.
2014-12-21 13:35:03 -05:00
rl1987
f785723e0b
Document the case of HiddenServiceDir being defined as relative path.
2014-12-21 19:05:10 +02:00
teor
d93516c445
Fix transparent proxy checks to allow OS X to use ipfw or pf
...
OS X uses ipfw (FreeBSD) or pf (OpenBSD). Update the transparent
proxy option checks to allow for both ipfw and pf on OS X.
Fixes bug 14002.
2014-12-20 22:28:58 +11:00
teor
6a9cae2e1d
Fix clang warning, IPv6 address comment, buffer size typo
...
The address of an array in the middle of a structure will
always be non-NULL. clang recognises this and complains.
Disable the tautologous and redundant check to silence
this warning.
A comment about an IPv6 address string incorrectly refers
to an IPv4 address format.
A log buffer is sized 10024 rather than 10240.
Fixes bug 14001.
2014-12-20 22:20:54 +11:00
Nick Mathewson
3d85df9569
LLONG_MIN => INT64_MIN.
2014-12-19 14:12:35 -05:00
Nick Mathewson
357191a095
Define an int64_min when it is missing
2014-12-19 14:12:22 -05:00
Karsten Loesing
816e6f2eac
Fix unit test.
...
Looks like we forgot to update unit tests when we switched from 32-bit to
64-bit ints while tweaking 7cd53b7
.
2014-12-19 18:37:43 +01:00
Nick Mathewson
64787e99fa
Merge branch 'asn-karsten-task-13192-5-squashed'
2014-12-19 10:35:47 -05:00
George Kadianakis
13a6fb9a2a
HS stats: Add changes file and improve man page.
2014-12-19 10:35:34 -05:00
George Kadianakis
14e83e626b
Add two hidden-service related statistics.
...
The two statistics are:
1. number of RELAY cells observed on successfully established
rendezvous circuits; and
2. number of .onion addresses observed as hidden-service
directory.
Both statistics are accumulated over 24 hours, obfuscated by rounding
up to the next multiple of a given number and adding random noise,
and written to local file stats/hidserv-stats.
Notably, no statistics will be gathered on clients or services, but
only on relays.
2014-12-19 10:35:25 -05:00
Nick Mathewson
eee248bc59
Merge remote-tracking branch 'dgoulet/bug13936_025_v2'
2014-12-19 09:38:46 -05:00
David Goulet
3d83907ab1
Fix: call circuit_has_opened() for rendezvous circuit
...
In circuit_get_open_circ_or_launch(), for a rendezvous circuit,
rend_client_rendcirc_has_opened() but circuit_has_opened() is preferred here
since it will call the right function for a specific circuit purpose.
Furthermore, a controller event is triggered where the former did not.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2014-12-17 16:06:53 -05:00
Nick Mathewson
f7e8bc2b4b
fix a long line
2014-12-12 08:54:07 -05:00
Nick Mathewson
7d5916c0a7
Reference bug number in changes file
2014-12-12 08:53:42 -05:00
Nick Mathewson
915c9a517e
Merge remote-tracking branch 'meejah/ticket-13941-b'
2014-12-12 08:53:14 -05:00
Nick Mathewson
7c5d888977
Tweak 13942 fix
2014-12-12 08:49:52 -05:00
meejah
85bfad1875
Pre-check hidden-service-dir permissions/ownership
...
See ticket #13942 where Tor dies if you feed it a hidden service
directory with the wrong owner via SETCONF.
2014-12-11 18:46:56 -07:00
meejah
76753efd7b
Fix 13941: make calling log_new_relay_greeting() optional.
...
Specifically, only if we're creating secret_id_key do we log the
greeting (and then only if the key is actually created).
2014-12-11 18:43:51 -07:00
Karsten Loesing
7cd53b75c1
Add better support to obfuscate statistics.
2014-12-10 11:16:26 +01:00
Roger Dingledine
b73a7600af
when somebody uploads too much, say who tried it
2014-12-10 01:10:44 -05:00
rl1987
9c239eccc9
Use END_CIRC_REASON_TORPROTOCOL instead of magic number.
2014-12-07 15:47:09 +02:00