]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Tue, 2 Dec 2008 23:36:58 +0000 (23:36 +0000)]
Change logging code to use fds instead of stdio. Fixes bug 861, and probably makes logging slightly faster. Not a backport candidate: bug 861 is too obscure and harmless.
svn:r17456
Nick Mathewson [Tue, 2 Dec 2008 23:26:04 +0000 (23:26 +0000)]
Add two lseek wrappers to compat.[ch]: one to return current fd position, and one to move the fd to the end of the file.
svn:r17454
Roger Dingledine [Tue, 2 Dec 2008 23:13:40 +0000 (23:13 +0000)]
#include "orconfig.h" in tor-checkkey.c to see if we can resolve
an obscure compile warning on solaris
svn:r17453
Nick Mathewson [Tue, 2 Dec 2008 23:02:31 +0000 (23:02 +0000)]
A cryptic comment in dir-spec.txt is now a complete proposal.
svn:r17452
Nick Mathewson [Tue, 2 Dec 2008 23:02:10 +0000 (23:02 +0000)]
Finish a sentence
svn:r17451
Nick Mathewson [Tue, 2 Dec 2008 22:20:47 +0000 (22:20 +0000)]
Add proposal 157: "Make certificate downloads specific"
svn:r17448
Nick Mathewson [Tue, 2 Dec 2008 19:13:23 +0000 (19:13 +0000)]
Apply rovv's patch for bug 864: avoid null error on detached signature handling failure.
svn:r17446
Nick Mathewson [Tue, 2 Dec 2008 18:54:47 +0000 (18:54 +0000)]
Define socklen_t before using it in compat.h
svn:r17444
Roger Dingledine [Tue, 2 Dec 2008 17:35:05 +0000 (17:35 +0000)]
clarify that 'resolve' relay cells nul-terminate the hostname, just
like 'begin' relay cells.
svn:r17442
Martin Peck [Sun, 30 Nov 2008 01:04:57 +0000 (01:04 +0000)]
Remove MSYSLibs from installer component list.
svn:r17412
Martin Peck [Sun, 30 Nov 2008 01:02:50 +0000 (01:02 +0000)]
Remove unnecessary msys libs from installer definitions.
svn:r17411
Roger Dingledine [Sat, 29 Nov 2008 12:09:05 +0000 (12:09 +0000)]
fix a few typos, clean up whitespace in comments
svn:r17409
Roger Dingledine [Sat, 29 Nov 2008 12:05:04 +0000 (12:05 +0000)]
add coderman's wix scripts to make a windows msi installer.
svn:r17408
Roger Dingledine [Sat, 29 Nov 2008 12:04:17 +0000 (12:04 +0000)]
minor fix
svn:r17407
Roger Dingledine [Sat, 29 Nov 2008 11:55:30 +0000 (11:55 +0000)]
clean up some log messages
svn:r17406
Nick Mathewson [Wed, 26 Nov 2008 17:14:59 +0000 (17:14 +0000)]
Revert my older supposed gcc-4.4 warning workaround. GCC was not being needlessly prissy; it was hinting at the wrongly pure smartlist_bsearch_idx.
svn:r17396
Nick Mathewson [Wed, 26 Nov 2008 16:57:46 +0000 (16:57 +0000)]
Stop marking bsearch_idx as pure; it is not.
svn:r17393
Nick Mathewson [Wed, 26 Nov 2008 16:13:12 +0000 (16:13 +0000)]
Cast uid_t and gid_t to unsigned before passing to printf %u.
svn:r17392
Nick Mathewson [Wed, 26 Nov 2008 16:10:56 +0000 (16:10 +0000)]
Use fcntl for file locking when flock() is not available.
svn:r17391
Roger Dingledine [Mon, 24 Nov 2008 02:08:46 +0000 (02:08 +0000)]
don't lose a patch that mwenge wrote to put different destination
ports on different streams. one day i will make this into a real
proposal, and argue we should put it in.
svn:r17380
Roger Dingledine [Mon, 24 Nov 2008 02:02:48 +0000 (02:02 +0000)]
whitespace fix
svn:r17379
Roger Dingledine [Mon, 24 Nov 2008 00:56:04 +0000 (00:56 +0000)]
also run ./reindex.pl
svn:r17378
Roger Dingledine [Mon, 24 Nov 2008 00:53:19 +0000 (00:53 +0000)]
add proposal 156 from mwenge, Tracking blocked ports on the client side
svn:r17377
Nick Mathewson [Sat, 22 Nov 2008 21:46:34 +0000 (21:46 +0000)]
Consider GetNetworkParams() nameserver parsing to have suceeded if even one nameserver can be added. Log more useful info about what exactly is failing when we fail to add a nameserver.
svn:r17368
Andrew Lewman [Sat, 22 Nov 2008 05:42:35 +0000 (05:42 +0000)]
Backport candidate. Force UDZO compression to level 9.
svn:r17360
Roger Dingledine [Sat, 22 Nov 2008 05:14:12 +0000 (05:14 +0000)]
and forward-port those
svn:r17359
Nick Mathewson [Sat, 22 Nov 2008 02:19:14 +0000 (02:19 +0000)]
Resolve a warning under gcc 4.4 trunk.
svn:r17357
Roger Dingledine [Fri, 21 Nov 2008 14:07:57 +0000 (14:07 +0000)]
prepare_for_poll() -- plus its mysterious cousin, prepare_for_pool() --
are long gone.
svn:r17351
Karsten Loesing [Mon, 17 Nov 2008 21:50:42 +0000 (21:50 +0000)]
Correct ChangeLog entry.
svn:r17321
Nick Mathewson [Mon, 17 Nov 2008 19:58:51 +0000 (19:58 +0000)]
Update _log_global_min_severity after switch_logs_debug(), so that USR2 will work again. Bugfix on 0.1.2.8-beta. Spotted by Geoff Down.
svn:r17317
Nick Mathewson [Sun, 16 Nov 2008 18:25:20 +0000 (18:25 +0000)]
apply sebastian's bug 867 fix: make routerset_equal() work as documented with NULL arguments
svn:r17287
Mike Perry [Sun, 16 Nov 2008 07:27:46 +0000 (07:27 +0000)]
Hrmm, still not sure I like the flow of this paragraph, but
this is slightly better.
svn:r17280
Mike Perry [Sun, 16 Nov 2008 07:26:46 +0000 (07:26 +0000)]
Add in initgroups call to drop root's groups.
svn:r17279
Karsten Loesing [Sun, 16 Nov 2008 01:52:44 +0000 (01:52 +0000)]
Fix a possible segfault when establishing an exit connection. Bugfix on 0.2.1.5-alpha.
svn:r17275
Mike Perry [Fri, 14 Nov 2008 19:47:28 +0000 (19:47 +0000)]
Doh. Need to drop GID first.
svn:r17271
Mike Perry [Fri, 14 Nov 2008 19:44:35 +0000 (19:44 +0000)]
Fix the prioritization C wrapper to also drop GID. Clarify
some language and formatting.
svn:r17270
Nick Mathewson [Wed, 12 Nov 2008 14:41:44 +0000 (14:41 +0000)]
Apparently sparc64 is way more strict about uint16_t access alignment than I had thought: it gave bus errors when messing with var-cell headers. Maybe this patch will fix bug 862.
svn:r17262
Nick Mathewson [Wed, 12 Nov 2008 14:39:25 +0000 (14:39 +0000)]
define get_uint8 and set_uint8 macros to make code cleaner.
svn:r17261
Nick Mathewson [Tue, 11 Nov 2008 17:14:12 +0000 (17:14 +0000)]
Be even _more_ careful when signatures are bogus.
svn:r17252
Nick Mathewson [Tue, 11 Nov 2008 16:52:07 +0000 (16:52 +0000)]
Only replace the detached signatures object when we actually added or replaced at least one signature.
svn:r17250
Nick Mathewson [Tue, 11 Nov 2008 16:35:46 +0000 (16:35 +0000)]
Fix from rovv: when adding a detached signature, do not automatically assume it is good just because we are adding it. We might also be adding it because it was the first signature we saw for a given voter.
svn:r17248
Nick Mathewson [Tue, 11 Nov 2008 16:02:23 +0000 (16:02 +0000)]
oops, remove debugging log message.
svn:r17247
Nick Mathewson [Tue, 11 Nov 2008 16:01:57 +0000 (16:01 +0000)]
be less aggressive about deleting expired certs. based on patch from rovv. partial fix for bug 854.
svn:r17246
Nick Mathewson [Tue, 11 Nov 2008 15:59:24 +0000 (15:59 +0000)]
Add PURPOSE= field to getinfo circuit-status. With luck, controllers are ignoring extra fields (like they are supposed to) and this will not break any controllers.
svn:r17245
Nick Mathewson [Tue, 11 Nov 2008 15:29:40 +0000 (15:29 +0000)]
apply sebastian's fix for bug 859. Apparently on win32 one must lock at least one byte when locking, but locking a nonexistant byte is okay. )
svn:r17244
Andrew Lewman [Tue, 11 Nov 2008 01:26:18 +0000 (01:26 +0000)]
remove some completed items. I should look at this more often.
svn:r17242
Mike Perry [Tue, 11 Nov 2008 00:51:59 +0000 (00:51 +0000)]
< arma> mikeperry: perhaps some of those urls should be https?
svn:r17241
Mike Perry [Tue, 11 Nov 2008 00:39:27 +0000 (00:39 +0000)]
Update urls+verbage.
svn:r17240
Nick Mathewson [Mon, 10 Nov 2008 20:40:01 +0000 (20:40 +0000)]
Document a couple of functions.
svn:r17239
Peter Palfrader [Mon, 10 Nov 2008 15:52:53 +0000 (15:52 +0000)]
No longer set now obsolete Group setting in built-in debian config
svn:r17237
Roger Dingledine [Mon, 10 Nov 2008 15:40:15 +0000 (15:40 +0000)]
remove all trace from the various contrib/ scripts that tor used
to have a 'group' option.
svn:r17236
Peter Palfrader [Mon, 10 Nov 2008 09:17:44 +0000 (09:17 +0000)]
New upstream version
svn:r17234
Roger Dingledine [Mon, 10 Nov 2008 00:48:13 +0000 (00:48 +0000)]
beg nick for some documentation on the locking functions
svn:r17233
Roger Dingledine [Mon, 10 Nov 2008 00:41:07 +0000 (00:41 +0000)]
better error message when you set User but start tor as non-root.
hopefully will address bug 857.
svn:r17232
Roger Dingledine [Sun, 9 Nov 2008 23:56:29 +0000 (23:56 +0000)]
we missed a case when printing circuit purposes in circ events.
svn:r17230
Roger Dingledine [Sun, 9 Nov 2008 23:32:38 +0000 (23:32 +0000)]
bump to 0.2.1.7-alpha-dev
svn:r17229
Nick Mathewson [Sun, 9 Nov 2008 16:54:54 +0000 (16:54 +0000)]
Log a little more when credential-switching fails.
svn:r17228
Nick Mathewson [Sun, 9 Nov 2008 16:41:06 +0000 (16:41 +0000)]
Add some notes on Unnamed, w lines, and p lines to dir-spec.txt, since they are all in the code now.
svn:r17227
Roger Dingledine [Sun, 9 Nov 2008 03:23:18 +0000 (03:23 +0000)]
remove a bunch of obsolete html files. they haven't been linked
to for many years. i think.
svn:r17224
Roger Dingledine [Sat, 8 Nov 2008 06:43:32 +0000 (06:43 +0000)]
bump to 0.2.1.7-alpha
svn:r17217
Roger Dingledine [Sat, 8 Nov 2008 06:33:43 +0000 (06:33 +0000)]
some changes i found in my other sandbox
svn:r17216
Roger Dingledine [Sat, 8 Nov 2008 06:32:46 +0000 (06:32 +0000)]
some minor changes i found in my sandbox
svn:r17215
Nick Mathewson [Fri, 7 Nov 2008 15:01:49 +0000 (15:01 +0000)]
but to not attempt to download a specific certificate we already have.
svn:r17214
Nick Mathewson [Fri, 7 Nov 2008 14:57:14 +0000 (14:57 +0000)]
Aaaaand, do not reset the download count just because we have a certificate that is listed in a consensus.
svn:r17212
Nick Mathewson [Fri, 7 Nov 2008 14:17:46 +0000 (14:17 +0000)]
fix up signs in r17208
svn:r17211
Nick Mathewson [Fri, 7 Nov 2008 14:01:44 +0000 (14:01 +0000)]
When we get a duplicated certificate, treat it as a failure and increment the download count. Do not claim to be downloading certificates that we merely want.
svn:r17209
Nick Mathewson [Fri, 7 Nov 2008 13:38:49 +0000 (13:38 +0000)]
patch from karsten to not use or accept expired certs. fixes bug 851.
svn:r17208
Roger Dingledine [Fri, 7 Nov 2008 05:11:41 +0000 (05:11 +0000)]
minor changelog cleanups. declare that friday is when we release it.
svn:r17207
Roger Dingledine [Fri, 7 Nov 2008 04:38:58 +0000 (04:38 +0000)]
vidalia asks us for the value of the Group config option. but now
it's obsolete. which causes us to inform the user every time, even
though the user can't do anything about it other than get confused.
now it's an info-level log by default.
svn:r17206
Roger Dingledine [Fri, 7 Nov 2008 04:35:41 +0000 (04:35 +0000)]
while we're cleaning code, get rid of some unreachable code at
the bottom of switch_id
svn:r17205
Roger Dingledine [Fri, 7 Nov 2008 04:34:47 +0000 (04:34 +0000)]
now that we drop privs more thoroughly, switch_id() is no longer
idempotent. so now we remember if we've succeeded, and if so we
don't even try.
svn:r17204
Roger Dingledine [Fri, 7 Nov 2008 04:11:03 +0000 (04:11 +0000)]
remove more redundant code from r17200
svn:r17203
Roger Dingledine [Fri, 7 Nov 2008 03:39:19 +0000 (03:39 +0000)]
i needed a piece of the 'patching patches' action too
svn:r17202
Nick Mathewson [Fri, 7 Nov 2008 02:53:46 +0000 (02:53 +0000)]
Developers should usually configure with --enable-gcc-warnings, and should regularly make check-spaces. Also, int fn() does not mean the same in C as it does in C++ or Java.
svn:r17201
Steven Murdoch [Fri, 7 Nov 2008 02:06:12 +0000 (02:06 +0000)]
Patch from Jacob Appelbaum and me to make User option more robust, properly set supplementary groups, deprecated the Group option, and log more information on credential switching
svn:r17200
Nick Mathewson [Fri, 7 Nov 2008 01:50:37 +0000 (01:50 +0000)]
Remove bug 811/845 debugging code
svn:r17199
Nick Mathewson [Fri, 7 Nov 2008 01:48:55 +0000 (01:48 +0000)]
fix wide lines
svn:r17198
Nick Mathewson [Wed, 5 Nov 2008 20:34:22 +0000 (20:34 +0000)]
The chunk_size field in memarea_t was never actually set. Remove the whole thing.
svn:r17195
Nick Mathewson [Wed, 5 Nov 2008 19:29:17 +0000 (19:29 +0000)]
make read_all and write_all return ssize_t.
svn:r17194
Nick Mathewson [Wed, 5 Nov 2008 18:35:53 +0000 (18:35 +0000)]
Make multiplicity of dir-address match code. Fix bug 849
svn:r17193
Nick Mathewson [Wed, 5 Nov 2008 18:31:28 +0000 (18:31 +0000)]
Yes, "NL" means "LF" to Tor.
svn:r17192
Nick Mathewson [Wed, 5 Nov 2008 18:03:14 +0000 (18:03 +0000)]
Fix a compile error found under pcc. It wants single-quites to be escaped in strings, it seems.
svn:r17191
Nick Mathewson [Wed, 5 Nov 2008 15:56:53 +0000 (15:56 +0000)]
Fix freebsd 7 compile by adding malloc_np.h header. Fix bug 850.
svn:r17190
Karsten Loesing [Wed, 5 Nov 2008 10:40:29 +0000 (10:40 +0000)]
(a - b) / 2 != a - (b / 2); this is the reason why tunneled directory requests and client-side introduction circuits don't time out after the intended 30 seconds (task #847). Bugfix on r17106. Found by miner.
svn:r17189
Nick Mathewson [Mon, 3 Nov 2008 16:36:15 +0000 (16:36 +0000)]
Fix unit test failure related to intro point parsing.
svn:r17188
Nick Mathewson [Mon, 3 Nov 2008 16:35:48 +0000 (16:35 +0000)]
Add a new memcmpstart to use instead of strcmpstart when the thing we are comparing is not nul-terminated.
svn:r17187
Nick Mathewson [Mon, 3 Nov 2008 15:46:05 +0000 (15:46 +0000)]
Add some debugging logs for bug 811/845.
svn:r17186
Nick Mathewson [Mon, 3 Nov 2008 15:45:27 +0000 (15:45 +0000)]
missing changelog for 0x20 hack
svn:r17185
Roger Dingledine [Mon, 3 Nov 2008 07:00:56 +0000 (07:00 +0000)]
when building preemptive circuits, ignore streams that have a
chosen exit node in mind already. otherwise we get tricked into
trying to build a new circuit that will handle them.
svn:r17184
Roger Dingledine [Sat, 1 Nov 2008 23:49:14 +0000 (23:49 +0000)]
fix the other half of r17091. now that best_support can be -1,
we were complaining about no support for our one-hop streams,
when in fact choose_good_exit_server_general() has no business
caring about one-hop streams. patch from miner.
svn:r17181
Nick Mathewson [Sat, 1 Nov 2008 20:28:10 +0000 (20:28 +0000)]
Move changelog entry to correct section
svn:r17180
Nick Mathewson [Sat, 1 Nov 2008 20:27:41 +0000 (20:27 +0000)]
Fix an assertion failure on double-marked circuits, and a double-mark.
svn:r17179
Nick Mathewson [Wed, 29 Oct 2008 19:20:02 +0000 (19:20 +0000)]
Implement the 0x20-hack to make DNS poisoning harder against us, especially when resolving large names. Add a cfg option to disable it, since apparently 3/10 of a percent of servers get it wrong.
svn:r17171
Nick Mathewson [Wed, 29 Oct 2008 15:31:26 +0000 (15:31 +0000)]
Work better with tools that resist DNS poisoning by using the 0x20 hack: make DNSPort replies perserve case.
svn:r17170
Nick Mathewson [Wed, 29 Oct 2008 13:29:54 +0000 (13:29 +0000)]
Fix a possible negative shift in address comparison. May fix bug 845 and bug 811
svn:r17169
Nick Mathewson [Mon, 27 Oct 2008 16:57:18 +0000 (16:57 +0000)]
make layer_hint check a little stricter.
svn:r17164
Nick Mathewson [Mon, 27 Oct 2008 16:46:45 +0000 (16:46 +0000)]
Verify cpath_layer match on rendezvous cells too. Fixes another case of bug 446. Based on patch from rovv.
svn:r17162
Nick Mathewson [Mon, 27 Oct 2008 16:30:52 +0000 (16:30 +0000)]
Document some dmalloc stuff and some stupid C tricks.
svn:r17161
Karsten Loesing [Mon, 27 Oct 2008 15:04:45 +0000 (15:04 +0000)]
gabelmoo has a new IP address.
svn:r17160
Jacob Appelbaum [Sun, 26 Oct 2008 22:56:53 +0000 (22:56 +0000)]
This patch changes some of the code in util.c to refactor calls to
dmalloc_malloc, dmalloc_realloc and dmalloc_strdup. It only calls those
functions if we're using the magic USE_DMALLOC macro. If we're not doing
that, we call the normal malloc, realloc and strdup. This is my first
night at malloc disambiguation club, so I had to disambiguate. Also, first commit, I have my commit bit now. Huzzzah!!!
svn:r17157