meejah
12298901fd
add new GETINFO config/defaults
...
returns the default values for every configuration item, similar
to GETINFO config/names; include a changes entry for it.
Fix for bug 4971
2012-06-28 15:15:51 -04:00
Nick Mathewson
96746e39f6
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-28 10:57:23 -04:00
Nick Mathewson
217862b317
Merge remote-tracking branch 'public/bug6244_part2' into maint-0.2.3
2012-06-28 10:49:32 -04:00
Nick Mathewson
d4a64fdc02
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-28 10:48:06 -04:00
Andrea Shepard
bdc8270280
Downgrade 'Got a certificate, but we already have it' log message from warning to info, except when we're a dirauth (fixes bug 5238)
2012-06-28 10:42:43 -04:00
Nick Mathewson
d4285f03df
Extend tor_sscanf so it can replace sscanf in rephist.c
...
Fixes bug 4195 and Coverity CID 448
2012-06-28 09:54:05 -04:00
Nick Mathewson
28c42fe029
Fix GETINFO address-mappings/... with wildcarded addresses.
2012-06-27 23:55:01 -04:00
Nick Mathewson
e12eba55b2
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-27 23:45:59 -04:00
Nick Mathewson
23f2e37ff7
Allow wildcarded mapaddress targets in controller MAPADDRESS command
2012-06-27 23:38:04 -04:00
Nick Mathewson
4050800251
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-26 10:30:51 -04:00
Nick Mathewson
c4586f4df7
Downgrade message about md cache cleaning from notice to info
...
Fix for #6238
2012-06-26 10:30:11 -04:00
Nick Mathewson
7c9f6a994f
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-25 13:23:07 -04:00
George Kadianakis
53e4452f98
Don't do DNS lookups when parsing corrupted managed proxy messages.
...
The functions parse_{s,c}method_line() were using
tor_addr_port_lookup() which is capable of doing DNS lookups. DNS
lookups should not be necessary when parsing {C,S}METHOD lines.
2012-06-25 13:19:22 -04:00
Nick Mathewson
888d5d08fe
Merge remote-tracking branch 'public/bug2385'
2012-06-25 12:05:36 -04:00
Nick Mathewson
a6688c574e
Catch a few more K&R violations with make check-spaces
...
We now catch bare {s that should be on the previous line with a do,
while, if, or for, and elses that should share a line with their
preceding }.
That is,
if (foo)
{
and
if (foo) {
...
}
else
are now detected.
We should think about maybe making Tor uncrustify-clean some day,
but configuring uncrustify is an exercise in bizarreness, and
reformatting huge gobs of Tor is always painful.
2012-06-23 15:54:01 -04:00
George Kadianakis
8c3a4a1d21
Improve log message issued when a managed proxy fails to launch.
2012-06-23 15:05:46 -04:00
Nick Mathewson
ebda15e4b5
Merge remote-tracking branch 'public/bug6211' into maint-0.2.3
2012-06-22 22:38:59 -04:00
Nick Mathewson
c239c57d3c
Fix a regression bug in AllowDotExit
...
The code that detected the source of a remapped address checked that
an address mapping's source was a given rewrite rule if addr_orig had
no .exit, and addr did have a .exit after processing that rule. But
addr_orig was formatted for logging: it was not the original address
at all, but rather was the address escaped for logging and possibly
replaced with "[scrubbed]".
This new logic will correctly set ADDRMAPSRC_NONE in the case when the
address starts life as a .exit address, so that AllowDotExit can work
again.
Fixes bug 6211; bugfix on 0.2.3.17-beta
2012-06-19 19:50:03 -04:00
Nick Mathewson
0600e8cab1
Disable warning for marked-but-reading in main.c
...
It turns out this can happen. Even though there is no reason for
connections to be marked but reading, we leave them reading anyway,
so warning here is unwarranted. Let's turn that back on once we do
something sensible and disable reading when we mark. Bugfix for
6203 on Tor 0.2.3.17-beta.
Thanks to cypherpunks for pointing out the general stupidity of the
original code here.
2012-06-19 12:22:43 -04:00
Nick Mathewson
4a8eaad7ef
Clear a couple more fields in rend_service_load_auth_keys
2012-06-18 13:13:53 -04:00
Nick Mathewson
b8d1e8e375
Refactor exit path in rend_service_load_auth_keys
...
Now it's an orthodox "goto err/done" exit path, and it isn't some
screwy thing where we stick err/done at the end of a loop and
duplicate our cleanup code.
2012-06-18 13:10:02 -04:00
Nick Mathewson
e5a61c5176
Fix indentation in rend_service_load_auth_keys
2012-06-18 13:01:33 -04:00
Nick Mathewson
be28d10622
Refactor rend_service_load_keys() into main portion and auth portion.
2012-06-18 12:59:29 -04:00
Nick Mathewson
53f5a38942
Fix indentation and whitespace in rend_service_load_keys
2012-06-18 12:45:55 -04:00
Nick Mathewson
b44693f32d
Refactor rend_service_load_keys() into outer loop and loop contents
2012-06-18 12:43:20 -04:00
Nick Mathewson
e6782b355a
Merge remote-tracking branch 'public/bug3311'
2012-06-18 12:07:39 -04:00
Nick Mathewson
4432fa40dd
Merge remote-tracking branch 'andrea/bug6028'
2012-06-18 11:51:55 -04:00
Roger Dingledine
26855fe22c
conn_type_to_string() on a listener already says it's a listener
2012-06-16 02:29:03 -04:00
Andrea Shepard
10130e5979
Appease make check-spaces
2012-06-15 21:48:15 -07:00
Andrea Shepard
b5280efc17
Clean up keys on stack in rend_parse_service_authorization()
2012-06-15 21:47:06 -07:00
Andrea Shepard
7f24b9b8c3
Clean up keys on stack in rend_client_refetch_v2_renddesc()
2012-06-15 21:39:28 -07:00
Andrea Shepard
a8bcbe7bf7
Clean up keys on stack in rend_client_send_introduction()
2012-06-15 21:25:25 -07:00
Andrea Shepard
ab2e007ffb
In rend_service_load_keys(), clear extended descriptor cookie and buffer, clear temporary heap space for client key, and check if serializing client key fails
2012-06-15 21:17:02 -07:00
Andrea Shepard
276f95182c
Clean keys on stack in rend_service_rendezvous_has_opened()
2012-06-15 20:54:45 -07:00
Andrea Shepard
88c5d3ca55
Clean keys on stack in rend_service_intro_has_opened()
2012-06-15 20:43:33 -07:00
Andrea Shepard
d43ba536df
Clean up keys on stack in rend_service_introduce()
2012-06-15 20:19:02 -07:00
Andrea Shepard
9f55dfd915
Clean up keys on stack in rend_service_load_keys()
2012-06-15 19:54:54 -07:00
Roger Dingledine
c37b8023b7
fix the typo on the typo fix
2012-06-15 20:34:16 -04:00
Andrea Shepard
1f7f10e4f3
Always set *socket_error to something appropriate when returning -1 from connection_connect()
2012-06-15 16:53:32 -07:00
Roger Dingledine
ca525db02d
fix typos from 783f705d
2012-06-15 17:08:25 -04:00
Nick Mathewson
eab75d2c36
Fix a typo found by Mike.
2012-06-15 16:12:04 -04:00
Nick Mathewson
bdfb399867
Merge remote-tracking branch 'public/xxx023'
2012-06-15 16:10:59 -04:00
Nick Mathewson
87409771c4
Clarify some messages about publishing hidden service descriptors
...
Fix for bug 3311.
2012-06-15 15:25:46 -04:00
Nick Mathewson
cc21e56ed4
Check the correct consensus before giving it to the client
...
Previously, a directory would check the latest NS consensus for
having the signatures the client wanted, and use that consensus's
valid_until time to set the HTTP lifetime. With this patch, the
directory looks at NS consensus or the microdesc consensus,
depending on what the client asked for.
2012-06-15 15:07:54 -04:00
Nick Mathewson
32bf258881
Change a silent ignore-the-bug in microdesc.c to a LOG_INFO
...
I don't believe this bug occurs, but there was an XXX023 to make
sure it doesn't.
2012-06-15 15:07:54 -04:00
Nick Mathewson
e62104a7d2
Move tor_gettimeofday_cached() into compat_libevent
2012-06-15 15:07:53 -04:00
Nick Mathewson
1755f792ed
Refactor GETINFO process/descriptor-limit
...
Previously it duplicated some getrlimit code and content from compat.c;
now it doesn't.
2012-06-15 15:07:53 -04:00
Nick Mathewson
783f705ddc
Document that we are unlikely to underflow session group IDs.
2012-06-15 15:07:53 -04:00
Nick Mathewson
2491fff5a6
Triage the XXX023 and XXX022 comments: postpone many.
2012-06-15 15:07:52 -04:00
Nick Mathewson
879b1e1010
Merge remote-tracking branch 'public/bug5932'
2012-06-15 14:44:32 -04:00