]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
14 years agoNote ticket and source version for feature3951 in changes file
Nick Mathewson [Fri, 7 Oct 2011 20:47:43 +0000 (16:47 -0400)] 
Note ticket and source version for feature3951 in changes file

14 years agoMerge remote-tracking branch 'karsten/feature3951' into maint-0.2.2
Nick Mathewson [Fri, 7 Oct 2011 20:46:50 +0000 (16:46 -0400)] 
Merge remote-tracking branch 'karsten/feature3951' into maint-0.2.2

14 years agoAvoid running DNS self-tests if we're operating as a bridge
warms0x [Fri, 7 Oct 2011 07:04:29 +0000 (07:04 +0000)] 
Avoid running DNS self-tests if we're operating as a bridge

14 years agoTurn on directory request statistics by default.
Karsten Loesing [Tue, 9 Nov 2010 13:18:00 +0000 (14:18 +0100)] 
Turn on directory request statistics by default.

Change the default values for collecting directory request statistics and
inlcuding them in extra-info descriptors to 1.

Don't break if we are configured to collect directory request or entry
statistics and don't have a GeoIP database. Instead, print out a notice
and skip initializing the affected statistics code.

This is the cherry-picked 499661524b0a572303087af721325608dd91f7ce.

14 years agoLooks like Windows version 6.2 will be Windows 8
Sebastian Hahn [Sat, 1 Oct 2011 12:44:39 +0000 (14:44 +0200)] 
Looks like Windows version 6.2 will be Windows 8

Thanks to funkstar for the report

14 years agobridges should use create_fast cells for their own circuits
Roger Dingledine [Wed, 28 Sep 2011 19:35:27 +0000 (15:35 -0400)] 
bridges should use create_fast cells for their own circuits

fixes bug 4124, as noticed in bug 4115

14 years agobug 4115: make bridges use begindir for their dir fetches
Roger Dingledine [Wed, 28 Sep 2011 18:50:43 +0000 (14:50 -0400)] 
bug 4115: make bridges use begindir for their dir fetches

removes another avenue for enumerating bridges.

14 years agotrivial whitespace changes, take two
Roger Dingledine [Sun, 25 Sep 2011 02:46:21 +0000 (22:46 -0400)] 
trivial whitespace changes, take two

14 years agoTrivial whitespace fixes
Nick Mathewson [Sun, 25 Sep 2011 02:15:59 +0000 (22:15 -0400)] 
Trivial whitespace fixes

14 years agoAdd a changes file for Tom Lowenthal's patch for #4063
Nick Mathewson [Sun, 25 Sep 2011 02:15:13 +0000 (22:15 -0400)] 
Add a changes file for Tom Lowenthal's patch for #4063

14 years agoTicket #4063 - change circuit build timeout log entries from NOTICE to INFO
Tom Lowenthal [Sat, 24 Sep 2011 22:34:32 +0000 (15:34 -0700)] 
Ticket #4063 - change circuit build timeout log entries from NOTICE to INFO

14 years agochanges file for bug 4059
Nick Mathewson [Tue, 20 Sep 2011 13:56:26 +0000 (09:56 -0400)] 
changes file for bug 4059

14 years agoFix a potentially useless integer overflow check.
Mansour Moufid [Tue, 20 Sep 2011 01:25:23 +0000 (21:25 -0400)] 
Fix a potentially useless integer overflow check.

GCC 4.2 and maybe other compilers optimize away unsigned integer
overflow checks of the form (foo + bar < foo), for all bar.

Fix one such check in `src/common/OpenBSD_malloc_Linux.c'.

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Thu, 15 Sep 2011 20:34:47 +0000 (16:34 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

14 years agoUpdate to the September 2011 GeoIP database.
Karsten Loesing [Mon, 12 Sep 2011 09:40:26 +0000 (11:40 +0200)] 
Update to the September 2011 GeoIP database.

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Tue, 13 Sep 2011 22:27:13 +0000 (18:27 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

Conflicts:
src/or/main.c
src/or/router.c

14 years agoGenerate our ssl session certs with a plausible lifetime
Roger Dingledine [Tue, 13 Sep 2011 22:24:45 +0000 (18:24 -0400)] 
Generate our ssl session certs with a plausible lifetime

Nobody but Tor uses certs on the wire with 2 hour lifetimes,
and it makes us stand out. Resolves ticket 4014.

14 years agoUpdate to the September 2011 GeoIP database.
Karsten Loesing [Mon, 12 Sep 2011 09:40:26 +0000 (11:40 +0200)] 
Update to the September 2011 GeoIP database.

14 years agoDemote 'INTRODUCE2 cell is too {old,new}' message to info level
Robert Ransom [Sun, 11 Sep 2011 01:40:09 +0000 (21:40 -0400)] 
Demote 'INTRODUCE2 cell is too {old,new}' message to info level

14 years agoDemote HS 'replay detected' log message for DH public keys to info level
Robert Ransom [Sun, 11 Sep 2011 00:54:26 +0000 (20:54 -0400)] 
Demote HS 'replay detected' log message for DH public keys to info level

14 years agoDescribe rend_service_descriptor_t more completely
Robert Ransom [Sat, 10 Sep 2011 23:09:01 +0000 (19:09 -0400)] 
Describe rend_service_descriptor_t more completely

14 years agoDescribe rend_intro_point_t more completely
Robert Ransom [Sat, 10 Sep 2011 23:05:53 +0000 (19:05 -0400)] 
Describe rend_intro_point_t more completely

14 years agoFix log message typo.
Robert Ransom [Sat, 10 Sep 2011 20:15:52 +0000 (16:15 -0400)] 
Fix log message typo.

14 years agoMerge remote-tracking branch 'public/gcc-295-fix' into maint-0.2.2
Nick Mathewson [Fri, 9 Sep 2011 16:54:27 +0000 (12:54 -0400)] 
Merge remote-tracking branch 'public/gcc-295-fix' into maint-0.2.2

14 years agoMerge remote-tracking branch 'public/enhance_replay_detection' into maint-0.2.2
Nick Mathewson [Fri, 9 Sep 2011 16:53:45 +0000 (12:53 -0400)] 
Merge remote-tracking branch 'public/enhance_replay_detection' into maint-0.2.2

14 years agoCheck for replays in PK-encrypted part of intro cell, not just in the g^x value
Nick Mathewson [Wed, 11 May 2011 01:40:10 +0000 (21:40 -0400)] 
Check for replays in PK-encrypted part of intro cell, not just in the g^x value

14 years agoAdd changes file for bsd4 fixes
Nick Mathewson [Fri, 9 Sep 2011 14:40:54 +0000 (10:40 -0400)] 
Add changes file for bsd4 fixes

14 years agoMerge remote-tracking branch 'public/bug2649_squashed' into maint-0.2.2
Nick Mathewson [Wed, 7 Sep 2011 18:43:06 +0000 (14:43 -0400)] 
Merge remote-tracking branch 'public/bug2649_squashed' into maint-0.2.2

14 years agoLook for correct "ar" to cross-compile
Nick Mathewson [Fri, 2 Sep 2011 15:51:49 +0000 (11:51 -0400)] 
Look for correct "ar" to cross-compile

For some reason, autoconf doesn't by default have an "AC_PROG_AR" for
this -- possibly it's assumed that any "ar" you have will work
everyplace.

Fixes bug 3909; found by sid77.

This fixes a build issue first present in fdbdb4dc1500, but the bug
(of not using a correct ar) has been in every Tor version ever: it
just didn't matter until then.

14 years agoFix assertion in addressmap_clear_excluded_trackexithosts
Nick Mathewson [Wed, 7 Sep 2011 00:26:20 +0000 (20:26 -0400)] 
Fix assertion in addressmap_clear_excluded_trackexithosts

Fixes bug 3923; bugfix on 0.2.2.25-alpha; bugfix from 'laruldan' on trac.

14 years agoCorrect man page: multiple control auth styles can be set at once
Roger Dingledine [Fri, 2 Sep 2011 11:01:55 +0000 (07:01 -0400)] 
Correct man page: multiple control auth styles can be set at once

14 years agoCheck for lround with autoconf; fall back to rint.
Nick Mathewson [Wed, 31 Aug 2011 02:22:15 +0000 (22:22 -0400)] 
Check for lround with autoconf; fall back to rint.

14 years agoFix a compilation issue on older FreeBSDs
Sebastian Hahn [Wed, 31 Aug 2011 00:45:49 +0000 (20:45 -0400)] 
Fix a compilation issue on older FreeBSDs

14 years agoUse %f with printf-style formatting, not %lf
Nick Mathewson [Wed, 31 Aug 2011 00:42:51 +0000 (20:42 -0400)] 
Use %f with printf-style formatting, not %lf

For printf, %f and %lf are synonymous, since floats are promoted to
doubles when passed as varargs.  It's only for scanf that we need to
say "%lf" for doubles and "%f" for floats.

Apparenly, some older compilers think it's naughty to say %lf and like
to spew warnings about it.

Found by grarpamp.

14 years agoSwitch a SMARTLIST_FOREACH in circuitbuild.c to BEGIN/END
Nick Mathewson [Wed, 31 Aug 2011 00:35:17 +0000 (20:35 -0400)] 
Switch a SMARTLIST_FOREACH in circuitbuild.c to BEGIN/END

It had some cpp stuff inside, and older GCCs don't like preprocessor
directives inside macro arguments.

Found by grarpamp.

14 years agoMention that HiddenServiceDir must exist
Sebastian Hahn [Thu, 25 Aug 2011 20:26:54 +0000 (22:26 +0200)] 
Mention that HiddenServiceDir must exist

14 years agolround() missing in MSVC
Gisle Vanem [Wed, 24 Aug 2011 17:52:44 +0000 (13:52 -0400)] 
lround() missing in MSVC

lround() is missing in MS Visual-C's <math.h>. Not available anywhere.
Here is an easy patch.

14 years agoDon't write ControlPorts to disk till after we setuid and make datadir
Nick Mathewson [Wed, 17 Aug 2011 15:22:16 +0000 (11:22 -0400)] 
Don't write ControlPorts to disk till after we setuid and make datadir

Fix for bug 3747; bugfix on 0.2.2.26-beta.

14 years agoRemove extra quotation marks around the result of esc_for_log
Robert Ransom [Mon, 15 Aug 2011 11:53:11 +0000 (04:53 -0700)] 
Remove extra quotation marks around the result of esc_for_log

14 years agoIgnore deprecation warnings on OS X
Sebastian Hahn [Wed, 10 Aug 2011 17:22:41 +0000 (19:22 +0200)] 
Ignore deprecation warnings on OS X

Starting with Lion, Apple decided to deprecate the system openssl. We
can start requiring users to install their own openssl once OS X doesn't
ship with it anymore.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Mon, 8 Aug 2011 21:21:21 +0000 (17:21 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoUpdate to the August 2011 GeoIP database.
Karsten Loesing [Mon, 8 Aug 2011 14:57:01 +0000 (16:57 +0200)] 
Update to the August 2011 GeoIP database.

14 years agoCheck return value in fmt_addr
Nick Mathewson [Wed, 20 Jul 2011 17:16:06 +0000 (13:16 -0400)] 
Check return value in fmt_addr

Previously, if tor_addr_to_str() returned NULL, we would reuse the
last value returned by fmt_addr().  (This could happen if we were
erroneously asked to format an AF_UNSPEC address.)  Now instead we
return "???".

14 years agoUntangle first sentence of changes/bug3607
Nick Mathewson [Tue, 19 Jul 2011 15:14:01 +0000 (11:14 -0400)] 
Untangle first sentence of changes/bug3607

14 years agoSpecify text or binary mode in every start_writing_to_stdio_file call
Robert Ransom [Tue, 19 Jul 2011 01:12:31 +0000 (18:12 -0700)] 
Specify text or binary mode in every start_writing_to_stdio_file call

14 years agoMerge branch 'bug3577' into maint-0.2.2
Nick Mathewson [Thu, 14 Jul 2011 21:20:01 +0000 (17:20 -0400)] 
Merge branch 'bug3577' into maint-0.2.2

14 years agoImprove error msg on failed getinfo fingerprint
Nick Mathewson [Thu, 14 Jul 2011 21:19:52 +0000 (17:19 -0400)] 
Improve error msg on failed getinfo fingerprint

14 years agoUpdate HACKING with some more release instructions
Sebastian Hahn [Thu, 14 Jul 2011 11:03:55 +0000 (13:03 +0200)] 
Update HACKING with some more release instructions

14 years agoChange GETINFO fingerprint to look at server_mode, not my_descriptor
Nick Mathewson [Wed, 13 Jul 2011 16:44:41 +0000 (12:44 -0400)] 
Change GETINFO fingerprint to look at server_mode, not my_descriptor

It's possible for us to be a server and have a fingerprint without
having yet generated a descriptor.

Fixes bug 3577; bugfix on 0.2.0.1-alpha

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Thu, 7 Jul 2011 17:29:02 +0000 (13:29 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

14 years agoupdate to the july 2011 geoip db
Roger Dingledine [Thu, 7 Jul 2011 17:28:36 +0000 (13:28 -0400)] 
update to the july 2011 geoip db

14 years agoCorrectly send a SUCCEEDED event for rdns requests
Sebastian Hahn [Thu, 7 Jul 2011 03:27:20 +0000 (05:27 +0200)] 
Correctly send a SUCCEEDED event for rdns requests

The issue was that we overlooked the possibility of reverse DNS success
at the end of connection_ap_handshake_socks_resolved(). Issue discovered
by katmagic, thanks!

14 years agoFix weird formatting of html manpage
Sebastian Hahn [Wed, 6 Jul 2011 08:38:01 +0000 (10:38 +0200)] 
Fix weird formatting of html manpage

Asciidoc was inserting <pre> tags for paragraphs that started with a
'+' at the beginning of the line. Instead, we need a space in front of
the plus.

14 years agoappease check-spaces
Roger Dingledine [Wed, 6 Jul 2011 04:48:22 +0000 (00:48 -0400)] 
appease check-spaces

14 years agoMerge remote-tracking branch 'rransom-tor/bug3465-022' into maint-0.2.2
Nick Mathewson [Tue, 5 Jul 2011 19:52:11 +0000 (15:52 -0400)] 
Merge remote-tracking branch 'rransom-tor/bug3465-022' into maint-0.2.2

14 years agoMerge branch 'cov217_022_squashed' into maint-0.2.2
Nick Mathewson [Fri, 1 Jul 2011 16:56:14 +0000 (12:56 -0400)] 
Merge branch 'cov217_022_squashed' into maint-0.2.2

14 years agoUse strlcpy when copying node IDs into measured_bw_line_t
Nick Mathewson [Fri, 1 Jul 2011 16:14:44 +0000 (12:14 -0400)] 
Use strlcpy when copying node IDs into measured_bw_line_t

We were using strncpy before, which isn't our style for stuff like
this.

This isn't a bug, though: before calling strncpy, we were checking
that strlen(src) was indeed == HEX_DIGEST_LEN, which is less than
sizeof(dst), so there was no way we could fail to NUL-terminate.
Still, strncpy(a,b,sizeof(a)) is an idiom that we ought to squash
everyplace.

Fixes CID #427.

14 years agoMerge branch 'cid30_changelog' into maint-0.2.2
Nick Mathewson [Fri, 1 Jul 2011 16:55:27 +0000 (12:55 -0400)] 
Merge branch 'cid30_changelog' into maint-0.2.2

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Fri, 1 Jul 2011 16:55:23 +0000 (12:55 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoMerge branches 'cov217_021' and 'cid_450' into maint-0.2.1
Nick Mathewson [Fri, 1 Jul 2011 16:54:51 +0000 (12:54 -0400)] 
Merge branches 'cov217_021' and 'cid_450' into maint-0.2.1

14 years agoUse strlcpy in create_unix_sockaddr()
Nick Mathewson [Fri, 1 Jul 2011 16:06:54 +0000 (12:06 -0400)] 
Use strlcpy in create_unix_sockaddr()

Using strncpy meant that if listenaddress were ever >=
sizeof(sockaddr_un.sun_path), we would fail to nul-terminate
sun_path.  This isn't a big deal: we never read sun_path, and the
kernel is smart enough to reject the sockaddr_un if it isn't
nul-terminated.  Nonetheless, it's a dumb failure mode.  Instead, we
should reject addresses that don't fit in sockaddr_un.sun_path.

Coverity found this; it's CID 428.  Bugfix on 0.2.0.3-alpha.

14 years agoFix a rare memory leak in rend_cache_store
Nick Mathewson [Fri, 1 Jul 2011 15:52:39 +0000 (11:52 -0400)] 
Fix a rare memory leak in rend_cache_store

When we rejected a descriptor for not being the one we wanted, we
were letting the parsed descriptor go out of scope.

Found by Coverity; CID # 30.

Bugfix on 0.2.1.26.

(No changes file yet, since this is not in any 0.2.1.x release.)

14 years agoAdd a changelog entry for cid30 fix.
Nick Mathewson [Fri, 1 Jul 2011 16:46:26 +0000 (12:46 -0400)] 
Add a changelog entry for cid30 fix.

14 years agoFix insanely large stack_allocation in log_credential_status
Nick Mathewson [Fri, 1 Jul 2011 16:36:33 +0000 (12:36 -0400)] 
Fix insanely large stack_allocation in log_credential_status

I'm not one to insist on C's miserly stack limits, but allocating a
256K array on the stack is too much even for me.

Bugfix on 0.2.1.7-alpha.  Found by coverity.  Fixes CID # 450.

14 years agoAdd BUILDTIMEOUT_SET to the result of GETINFO events/names
Robert Ransom [Sat, 25 Jun 2011 22:02:11 +0000 (15:02 -0700)] 
Add BUILDTIMEOUT_SET to the result of GETINFO events/names

14 years agoCorrect a comment
Robert Ransom [Fri, 24 Jun 2011 22:12:45 +0000 (15:12 -0700)] 
Correct a comment

14 years agoFix minor comment issues
Robert Ransom [Thu, 23 Jun 2011 22:10:11 +0000 (15:10 -0700)] 
Fix minor comment issues

14 years agoImprove documentation of smartlist_split_string
Robert Ransom [Wed, 22 Jun 2011 20:47:32 +0000 (13:47 -0700)] 
Improve documentation of smartlist_split_string

14 years agoFix minor comment issues
Robert Ransom [Sun, 19 Jun 2011 08:28:40 +0000 (01:28 -0700)] 
Fix minor comment issues

14 years agoFix comment typo
Robert Ransom [Sun, 19 Jun 2011 08:25:51 +0000 (01:25 -0700)] 
Fix comment typo

14 years agoexplain that the ./publish should happen soon after the scp
Roger Dingledine [Tue, 21 Jun 2011 04:37:18 +0000 (00:37 -0400)] 
explain that the ./publish should happen soon after the scp

otherwise you scp a tarball up but only one version of the website has it.

14 years agoFix overwide lines in util.c
Nick Mathewson [Mon, 20 Jun 2011 19:28:06 +0000 (15:28 -0400)] 
Fix overwide lines in util.c

14 years agoTweak bug2355_revert at suggestion from Roger
Nick Mathewson [Mon, 20 Jun 2011 00:58:46 +0000 (20:58 -0400)] 
Tweak bug2355_revert at suggestion from Roger

14 years agoAdd changes file for bug2355 revert
Nick Mathewson [Fri, 17 Jun 2011 20:54:31 +0000 (16:54 -0400)] 
Add changes file for bug2355 revert

14 years agoRevert "Add an "auto" option to UseBridges"
Nick Mathewson [Fri, 17 Jun 2011 20:45:53 +0000 (16:45 -0400)] 
Revert "Add an "auto" option to UseBridges"

This reverts commit 507c1257a4d9c629fefc2adbad8db73607749734.

14 years agoRevert "Update man page for new UseBridges tristate behaviour."
Nick Mathewson [Fri, 17 Jun 2011 20:45:23 +0000 (16:45 -0400)] 
Revert "Update man page for new UseBridges tristate behaviour."

This reverts commit 40cfad1b5ae90b06eb74861a4fdc1310f8611111.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Fri, 17 Jun 2011 19:24:23 +0000 (15:24 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoAbandon rendezvous circuits on SIGNAL NEWNYM
Robert Ransom [Fri, 10 Jun 2011 02:56:40 +0000 (19:56 -0700)] 
Abandon rendezvous circuits on SIGNAL NEWNYM

14 years agoMerge branch 'bug3407' into maint-0.2.2
Nick Mathewson [Fri, 17 Jun 2011 18:59:39 +0000 (14:59 -0400)] 
Merge branch 'bug3407' into maint-0.2.2

14 years agoMake send_control_event_impl's behaviour sane
Robert Ransom [Thu, 16 Jun 2011 10:39:37 +0000 (03:39 -0700)] 
Make send_control_event_impl's behaviour sane

14 years agoFix comment typo
Robert Ransom [Thu, 16 Jun 2011 09:57:58 +0000 (02:57 -0700)] 
Fix comment typo

14 years agoMake connection_printf_to_buf's behaviour sane
Robert Ransom [Thu, 16 Jun 2011 04:16:44 +0000 (21:16 -0700)] 
Make connection_printf_to_buf's behaviour sane

14 years agolog when we finish ssl handshake and move to renegotiation
Roger Dingledine [Fri, 17 Jun 2011 07:31:59 +0000 (03:31 -0400)] 
log when we finish ssl handshake and move to renegotiation

debug-level since it will be quite common. logged at both client
and server side. this step should help us track what's going on
with people filtering tor connections by our ssl habits.

14 years agoMerge remote-tracking branch 'public/bug3369' into maint-0.2.2
Nick Mathewson [Tue, 14 Jun 2011 17:46:10 +0000 (13:46 -0400)] 
Merge remote-tracking branch 'public/bug3369' into maint-0.2.2

14 years agoAdd changes file for bug3393
Nick Mathewson [Tue, 14 Jun 2011 17:45:12 +0000 (13:45 -0400)] 
Add changes file for bug3393

14 years agoMake ControlSocketsGroupWritable work with User.
Jérémy Bobbio [Tue, 14 Jun 2011 16:18:32 +0000 (12:18 -0400)] 
Make ControlSocketsGroupWritable work with User.

Original message from bug3393:

check_private_dir() to ensure that ControlSocketsGroupWritable is
safe to use. Unfortunately, check_private_dir() only checks against
the currently running user… which can be root until privileges are
dropped to the user and group configured by the User config option.

The attached patch fixes the issue by adding a new effective_user
argument to check_private_dir() and updating the callers. It might
not be the best way to fix the issue, but it did in my tests.

(Code by lunar; changelog by nickm)

14 years agochangelog entry for bug3369
Nick Mathewson [Mon, 13 Jun 2011 17:42:00 +0000 (13:42 -0400)] 
changelog entry for bug3369

14 years agoclient-side DNS proxy server: reply NOTIMPL to unsupported queries
intrigeri [Sun, 12 Jun 2011 09:57:31 +0000 (11:57 +0200)] 
client-side DNS proxy server: reply NOTIMPL to unsupported queries

Fix for bug 3369.

14 years agoFix a rare memleak during stats writing
Sebastian Hahn [Wed, 8 Jun 2011 19:35:26 +0000 (21:35 +0200)] 
Fix a rare memleak during stats writing

If rep_hist_buffer_stats_write() was called unitinitalized, we'd leak
memory.

14 years agoDon't use signed 1-bit bitfields
Sebastian Hahn [Wed, 8 Jun 2011 19:27:32 +0000 (21:27 +0200)] 
Don't use signed 1-bit bitfields

This was harmless, we never compared it to anything but itself or 0.
But Coverity complained, and it had a point.

14 years agoComment out some obviously dead code.
Sebastian Hahn [Wed, 8 Jun 2011 19:23:05 +0000 (21:23 +0200)] 
Comment out some obviously dead code.

Coverity warned about it, it's harmless to comment out.

14 years agoRemove a few dead assignments during router parsing
Sebastian Hahn [Wed, 8 Jun 2011 19:16:11 +0000 (21:16 +0200)] 
Remove a few dead assignments during router parsing

14 years agoCheck some more return values in unit tests
Sebastian Hahn [Wed, 8 Jun 2011 19:06:01 +0000 (21:06 +0200)] 
Check some more return values in unit tests

14 years agoremove some dead code, found by coverity
Sebastian Hahn [Wed, 8 Jun 2011 18:02:16 +0000 (20:02 +0200)] 
remove some dead code, found by coverity

14 years agoMerge branch 'bug3306_nm_squashed' into maint-0.2.2
Nick Mathewson [Mon, 6 Jun 2011 20:18:24 +0000 (16:18 -0400)] 
Merge branch 'bug3306_nm_squashed' into maint-0.2.2

14 years agoDetect insanely large circuit build state; don't give its length to rand_int
Nick Mathewson [Wed, 1 Jun 2011 16:12:01 +0000 (12:12 -0400)] 
Detect insanely large circuit build state; don't give its length to rand_int

14 years agoCheck maximum properly in crypto_rand_int()
Nick Mathewson [Wed, 1 Jun 2011 15:48:39 +0000 (11:48 -0400)] 
Check maximum properly in crypto_rand_int()

George Kadianakis notes that if you give crypto_rand_int() a value
above INT_MAX, it can return a negative number, which is not what
the documentation would imply.

The simple solution is to assert that the input is in [1,INT_MAX+1].
If in the future we need a random-value function that can return
values up to UINT_MAX, we can add one.

Fixes bug 3306; bugfix on 0.2.2pre14.

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Sun, 5 Jun 2011 15:13:50 +0000 (11:13 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

14 years agomove to the june 1 2011 maxmind geoip db
Roger Dingledine [Sun, 5 Jun 2011 15:12:28 +0000 (11:12 -0400)] 
move to the june 1 2011 maxmind geoip db

14 years agoIncrease default required uptime for HSDirs to 25 hours
Robert Ransom [Tue, 10 May 2011 10:35:45 +0000 (03:35 -0700)] 
Increase default required uptime for HSDirs to 25 hours