]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoMSVC build issue: make 'const' in declaration match 'const' in definition
Nick Mathewson [Mon, 14 May 2012 17:05:00 +0000 (13:05 -0400)] 
MSVC build issue: make 'const' in declaration match 'const' in definition

MSVC warns if you declare a function as having a "int foo" argument
and then implement it with a "const int foo" argument, even though
the latter "const" is not a part of the function's interface.

13 years agoMSVC build issue: we use INLINE as the one that will magically work
Nick Mathewson [Mon, 14 May 2012 17:04:37 +0000 (13:04 -0400)] 
MSVC build issue: we use INLINE as the one that will magically work

13 years agoMSVC build issue: add magic to make openssl headers in aes.c work
Nick Mathewson [Mon, 14 May 2012 17:04:13 +0000 (13:04 -0400)] 
MSVC build issue: add magic to make openssl headers in aes.c work

13 years agoBe a good git person: store nmakefiles in correct text fmt
Nick Mathewson [Mon, 14 May 2012 17:01:05 +0000 (13:01 -0400)] 
Be a good git person: store nmakefiles in correct text fmt

13 years agoRemove the unused torrc.bridge.in. Bug 5622.
Nick Mathewson [Mon, 14 May 2012 16:37:39 +0000 (12:37 -0400)] 
Remove the unused torrc.bridge.in. Bug 5622.

13 years agoAdd some MSVC stuff to gitignore
Nick Mathewson [Mon, 14 May 2012 16:35:10 +0000 (12:35 -0400)] 
Add some MSVC stuff to gitignore

13 years agoWe do not need to define _WIN32 by hand; MSVC does that for us
Nick Mathewson [Mon, 14 May 2012 16:22:51 +0000 (12:22 -0400)] 
We do not need to define _WIN32 by hand; MSVC does that for us

Bug 5858; fix on 0.2.3.12-alpha

13 years agoFix win32 compilation of 31eb73f88e8
Nick Mathewson [Mon, 14 May 2012 16:08:05 +0000 (12:08 -0400)] 
Fix win32 compilation of 31eb73f88e8

13 years agoDo not publish the "git-XXX" tag in server descriptors
Nick Mathewson [Fri, 11 May 2012 22:06:12 +0000 (18:06 -0400)] 
Do not publish the "git-XXX" tag in server descriptors

Instead, allow packagers to put a 'TOR_BUILD_TAG' field in the
server descriptor to indicate a platform-specific value, if they
need to.  (According to weasel, this was his use for the git- tag
previously.)

This is part of 2988

13 years agoCut down on the OS information we give.
Nick Mathewson [Fri, 11 May 2012 21:50:30 +0000 (17:50 -0400)] 
Cut down on the OS information we give.

For uname-based detection, we now give only the OS name (e.g.,
"Darwin", "Linux".)  For Windows, we give only the Operating System
name as inferred from dw(Major|Minor)version, (e.g., "Windows XP",
"Windows 7"), and whether the VER_NT_SERVER flag is set.

For ticket 2988.

13 years agoFix a couple of wide lines
Nick Mathewson [Fri, 11 May 2012 17:01:07 +0000 (13:01 -0400)] 
Fix a couple of wide lines

13 years agoMerge remote-tracking branch 'asn/bug4865_take2'
Nick Mathewson [Fri, 11 May 2012 15:52:51 +0000 (11:52 -0400)] 
Merge remote-tracking branch 'asn/bug4865_take2'

13 years agoMerge remote-tracking branch 'public/bug5091'
Nick Mathewson [Fri, 11 May 2012 15:45:40 +0000 (11:45 -0400)] 
Merge remote-tracking branch 'public/bug5091'

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 10 May 2012 21:57:31 +0000 (17:57 -0400)] 
Merge branch 'maint-0.2.2'

13 years agofix over-wide line from f661747370
Roger Dingledine [Thu, 10 May 2012 21:46:19 +0000 (17:46 -0400)] 
fix over-wide line from f661747370

13 years agoFix O(n^2) performance when parsing a big pile of extrainfos
Nick Mathewson [Thu, 10 May 2012 21:27:16 +0000 (17:27 -0400)] 
Fix O(n^2) performance when parsing a big pile of extrainfos

We were doing an O(n) strlen in router_get_extrainfo_hash() for
every one we tried to parse.  Instead, have
router_get_extrainfo_hash() take the length of the extrainfo as an
argument, so that when it's called from
extrainfo_parse_from_string(), it doesn't do a strlen() over the
whole pile of extrainfos.

13 years agoMerge remote-tracking branch 'public/bug4591'
Nick Mathewson [Thu, 10 May 2012 19:55:12 +0000 (15:55 -0400)] 
Merge remote-tracking branch 'public/bug4591'

13 years agoMerge branch 'bug5786'
Nick Mathewson [Thu, 10 May 2012 19:44:41 +0000 (15:44 -0400)] 
Merge branch 'bug5786'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 10 May 2012 19:41:04 +0000 (15:41 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/common/util.c
src/test/test_util.c

13 years agoMerge branch 'bug5786_range_022' into maint-0.2.2
Nick Mathewson [Thu, 10 May 2012 19:38:57 +0000 (15:38 -0400)] 
Merge branch 'bug5786_range_022' into maint-0.2.2

13 years agoMerge remote-tracking branch 'asn/bug5540'
Nick Mathewson [Thu, 10 May 2012 18:24:17 +0000 (14:24 -0400)] 
Merge remote-tracking branch 'asn/bug5540'

13 years agoMerge remote-tracking branch 'linus/bug5146'
Nick Mathewson [Thu, 10 May 2012 18:07:23 +0000 (14:07 -0400)] 
Merge remote-tracking branch 'linus/bug5146'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 10 May 2012 15:50:14 +0000 (11:50 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoAdd changes/bug5760
Ravi Chandra Padmala [Thu, 10 May 2012 07:23:16 +0000 (12:53 +0530)] 
Add changes/bug5760

13 years agoAdd missing CRLFs to AUTHCHALLENGE failure replies
Ravi Chandra Padmala [Thu, 3 May 2012 21:04:26 +0000 (02:34 +0530)] 
Add missing CRLFs to AUTHCHALLENGE failure replies
Fix #5760

13 years agoFix a segfault in pt/protocol test
Nick Mathewson [Tue, 8 May 2012 13:37:43 +0000 (09:37 -0400)] 
Fix a segfault in pt/protocol test

Now that the pt code logs mp->argv[0] all over the place, we need to
be sure to set up mp->argv in our tests.

Bugfix on e603692adcd, not in any released version.

13 years agoDetect out-of-bounds bwweightscale values early in the voting process
Nick Mathewson [Mon, 7 May 2012 16:44:34 +0000 (12:44 -0400)] 
Detect out-of-bounds bwweightscale values early in the voting process

If the authorities agreed on a sufficiently bad bwweightscale value
(<=0 or == INT32_MAX), the bandwidth algorithm could make the voters
assert while computing the consensus.

Fix for bug5786; bugfix on 0.2.2.17-alpha

13 years agoCheck more thoroughly for dups when parsing networkstatus parameters
Nick Mathewson [Mon, 7 May 2012 16:38:28 +0000 (12:38 -0400)] 
Check more thoroughly for dups when parsing networkstatus parameters

See changes file for details.

Partial fix for bug 5786; fix on 0.2.2.2-alpha.

13 years agoHandle out-of-range values in tor_parse_* integer functions
Nick Mathewson [Mon, 7 May 2012 16:25:59 +0000 (12:25 -0400)] 
Handle out-of-range values in tor_parse_* integer functions

The underlying strtoX functions handle overflow by saturating and
setting errno to ERANGE.  If the min/max arguments to the
tor_parse_* functions are equal to the minimum/maximum of the
underlying type, then with the old approach, we wouldn't treat a
too-large value as genuinely broken.

Found this while looking at bug 5786; bugfix on 19da1f36 (in Tor
0.0.9), which introduced these functions.

13 years agoApply a patch from Gisle Vanem to make tor-gencert build under MSVC
Nick Mathewson [Mon, 7 May 2012 15:31:08 +0000 (11:31 -0400)] 
Apply a patch from Gisle Vanem to make tor-gencert build under MSVC

(Note: It makes sense to use tor-gencert on Windows for testing
purposes only.  If you are a directory authority operator, and you
are contemplating running tor-gencert on a Windows box in an actual
production environment, you are probably making a mistake.)

13 years agoMerge branch 'bug5645_take2'
Nick Mathewson [Mon, 7 May 2012 15:09:50 +0000 (11:09 -0400)] 
Merge branch 'bug5645_take2'

13 years agoMake a cast less const-violating; make a field size explicit.
Nick Mathewson [Mon, 7 May 2012 15:09:02 +0000 (11:09 -0400)] 
Make a cast less const-violating; make a field size explicit.

13 years agoReorder rend_mid_rendezvous() to do protocol violation checks on top.
George Kadianakis [Mon, 7 May 2012 15:05:54 +0000 (18:05 +0300)] 
Reorder rend_mid_rendezvous() to do protocol violation checks on top.

13 years agoMerge branch 'bug5070_take2'
Nick Mathewson [Mon, 7 May 2012 15:03:33 +0000 (11:03 -0400)] 
Merge branch 'bug5070_take2'

13 years agoUsing %d to printf an enum may not be by-the-standard okay.
Nick Mathewson [Mon, 7 May 2012 15:02:17 +0000 (11:02 -0400)] 
Using %d to printf an enum may not be by-the-standard okay.

13 years agoFix an overwide line
Nick Mathewson [Mon, 7 May 2012 14:59:23 +0000 (10:59 -0400)] 
Fix an overwide line

13 years agoFix comments: There is no such thing as a NUL pointer
Nick Mathewson [Mon, 7 May 2012 14:57:59 +0000 (10:57 -0400)] 
Fix comments: There is no such thing as a NUL pointer

13 years agoChanges file for bug 5070
Nick Mathewson [Mon, 7 May 2012 13:56:12 +0000 (09:56 -0400)] 
Changes file for bug 5070

13 years agoDocument some transports.c behaviors and assumptions
Nick Mathewson [Mon, 7 May 2012 13:55:14 +0000 (09:55 -0400)] 
Document some transports.c behaviors and assumptions

13 years agofix quad typo in comments
Roger Dingledine [Mon, 7 May 2012 05:54:53 +0000 (01:54 -0400)] 
fix quad typo in comments

i assume if nickm maintained "libeven" this would never have been
introduced. :)

13 years agoFix bug 5762: detect missing accept4 that gives ENOSYS
Nick Mathewson [Fri, 4 May 2012 17:17:20 +0000 (13:17 -0400)] 
Fix bug 5762: detect missing accept4 that gives ENOSYS

We had been checking for EINVAL, but that means that SOCK_* isn't
supported, not that the syscall itself is missing.

Bugfix on 0.2.3.1-alpha, which started to use accept4.

13 years agoIgnore [::] when building descriptors.
Linus Nordberg [Thu, 3 May 2012 20:19:38 +0000 (22:19 +0200)] 
Ignore [::] when building descriptors.

This is how IPv6 says "0.0.0.0" and something we will have to
translate into a globally reachable address before putting it in a
descriptor.

The fix is a short term solution until a real one is implemented.

Closes #5146.

13 years agoMake transports.c logs a bit more helpful.
George Kadianakis [Thu, 3 May 2012 01:38:53 +0000 (04:38 +0300)] 
Make transports.c logs a bit more helpful.

13 years agoAdd a missing ntohl to tell_controller_about_resolve_result
Nick Mathewson [Tue, 1 May 2012 20:39:49 +0000 (16:39 -0400)] 
Add a missing ntohl to tell_controller_about_resolve_result

Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)

13 years agobump to 0.2.3.15-alpha-dev
Roger Dingledine [Mon, 30 Apr 2012 20:43:08 +0000 (16:43 -0400)] 
bump to 0.2.3.15-alpha-dev

13 years agobump to 0.2.3.15-alpha tor-0.2.3.15-alpha
Roger Dingledine [Mon, 30 Apr 2012 20:16:30 +0000 (16:16 -0400)] 
bump to 0.2.3.15-alpha

13 years agofold in new changes entries
Roger Dingledine [Mon, 30 Apr 2012 20:14:20 +0000 (16:14 -0400)] 
fold in new changes entries

13 years agoRemove __ from HAVE_EXTERN_ENVIRON_DECLARED__
Nick Mathewson [Mon, 30 Apr 2012 16:52:16 +0000 (12:52 -0400)] 
Remove __ from HAVE_EXTERN_ENVIRON_DECLARED__

I think that the trailing __ got added in false analogy to
HAVE_MACRO__func__, HAVE_MACRO__FUNC__, and HAVE_MACRO__FUNCTION__.
But those macros actually indicate the presence of __func__,
__FUNC__, and __FUNCTION__ respectively.  The __ at the end of
HAVE_EXTERN_ENVIRON_DECLARED would only be appropriate if the
environ were declared__, whatever that means.

(As a side-note, HAVE_MACRO__func__ and so on should probably be
renamed HAVE_MACRO___func__ and so on.  But that can wait.)

This is an identifier renaming only.

13 years agoFix headers in test for whether environ is declared in stdlib/unistd
Nick Mathewson [Mon, 30 Apr 2012 16:48:33 +0000 (12:48 -0400)] 
Fix headers in test for whether environ is declared in stdlib/unistd

We'd had our configure.in test include unistd.h unconditionally,
which would fail on Windows/mingw, even though environ _was_
declared there.  Fix for 5704; bugfix on 0.2.3.13-alpha.

Thanks to Erinn for finding this and rransom for figuring out the
problem.

13 years agoOnly disable cert chaining on the first TLS handshake
Nick Mathewson [Fri, 27 Apr 2012 16:13:56 +0000 (12:13 -0400)] 
Only disable cert chaining on the first TLS handshake

If the client uses a v2 cipherlist on the renegotiation handshake,
it looks as if they could fail to get a good cert chain from the
server, since they server would re-disable certificate chaining.

This patch makes it so the code that make the server side of the
first v2 handshake special can get called only once.

Fix for 4591; bugfix on 0.2.0.20-rc.

13 years agoSeveral mingw/msvc/cross-compilation fixes
Nick Mathewson [Thu, 26 Apr 2012 22:34:47 +0000 (18:34 -0400)] 
Several mingw/msvc/cross-compilation fixes

They boil down to:
 - MS_WINDOWS is dead and replaced with _WIN32, but we let a few
   instances creep in when we merged Esteban's tests.
 - Capitalizing windows header names confuses mingw.
 - #ifdef 0 ain't C.
 - One unit test wasn't compiled on windows, but was being listed
   anyway.
 - One unit test was checking for the wrong value.

Gisle Vanem found and fixed the latter 3 issues.

13 years agoMerge remote-tracking branch 'arma/bug5623'
Nick Mathewson [Tue, 24 Apr 2012 19:25:21 +0000 (15:25 -0400)] 
Merge remote-tracking branch 'arma/bug5623'

13 years agopeel off some unnecessary parens
Roger Dingledine [Tue, 24 Apr 2012 16:26:00 +0000 (12:26 -0400)] 
peel off some unnecessary parens

13 years agoMerge remote-tracking branch 'nickm/bug2497'
Roger Dingledine [Tue, 24 Apr 2012 16:19:07 +0000 (12:19 -0400)] 
Merge remote-tracking branch 'nickm/bug2497'

13 years agoMerge remote-tracking branch 'public/bug5103'
Nick Mathewson [Tue, 24 Apr 2012 15:41:24 +0000 (11:41 -0400)] 
Merge remote-tracking branch 'public/bug5103'

13 years agoMerge remote-tracking branch 'public/bug4572'
Nick Mathewson [Tue, 24 Apr 2012 15:38:51 +0000 (11:38 -0400)] 
Merge remote-tracking branch 'public/bug4572'

13 years agoAdd a check_no_tls_errors() to read_to_buf_tls
Arturo Filastò [Wed, 22 Feb 2012 08:29:16 +0000 (00:29 -0800)] 
Add a check_no_tls_errors() to read_to_buf_tls

Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code".

This check was added back in 0.1.0.3-rc, but somehow we forgot to
leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc.

(patch by Arturo; commit message and changes file by nickm)

13 years agobe willing to use nodes in excludeexitnodes as directory mirrors
Roger Dingledine [Tue, 24 Apr 2012 15:26:05 +0000 (11:26 -0400)] 
be willing to use nodes in excludeexitnodes as directory mirrors

fixes bug 5623.

13 years agoMerge branch 'bug4438-v2'
Nick Mathewson [Tue, 24 Apr 2012 15:18:41 +0000 (11:18 -0400)] 
Merge branch 'bug4438-v2'

13 years agoTweak the bug4438 fix a little: different check, better log
Nick Mathewson [Wed, 28 Mar 2012 14:47:17 +0000 (10:47 -0400)] 
Tweak the bug4438 fix a little: different check, better log

Instead of checking for 'rejected' and calling everything else okay,
let's check for 'outdated' and call everythign else a problem.  This
way we don't risk missing future errors so much.

When logging a message that _looks_ like an error message at info, we
should mention that it isn't really a problem.

13 years agoMerge remote-tracking branch 'public/bug5112'
Nick Mathewson [Tue, 24 Apr 2012 15:14:22 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug5112'

13 years agoMerge remote-tracking branch 'public/bug5537'
Nick Mathewson [Tue, 24 Apr 2012 15:05:50 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'public/bug5537'

13 years agoAdd changes file for miniupnpc 1.6 fix
Nick Mathewson [Tue, 24 Apr 2012 14:58:16 +0000 (10:58 -0400)] 
Add changes file for miniupnpc 1.6 fix

13 years agoFix compile error against miniupnpc-1.6 when --enable-upnp
Anthony G. Basile [Thu, 22 Mar 2012 16:09:40 +0000 (12:09 -0400)] 
Fix compile error against miniupnpc-1.6 when --enable-upnp

The bump from miniupnpc-1.5 to 1.6 changes the definition of
two functions used by tor-fw-helper-upnp.c, upnpDiscover() and
UPNP_AddPortMapping().  This patch addresses this and adds a
check in configure.in for backwards compatibility.

Thanks to Nickolay Kolchin-Semyonov for some hints.

X-Tor-Bug-URL: https://trac.torproject.org/projects/tor/ticket/5434
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=376621
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
13 years agobump to 0.2.3.14-alpha-dev
Roger Dingledine [Mon, 23 Apr 2012 07:34:04 +0000 (03:34 -0400)] 
bump to 0.2.3.14-alpha-dev

13 years agogive 0.2.3.14-alpha a blurb tor-0.2.3.14-alpha
Roger Dingledine [Mon, 23 Apr 2012 07:22:42 +0000 (03:22 -0400)] 
give 0.2.3.14-alpha a blurb

13 years agobump to 0.2.3.14-alpha
Roger Dingledine [Mon, 23 Apr 2012 07:17:28 +0000 (03:17 -0400)] 
bump to 0.2.3.14-alpha

13 years agoupdate the torrc.sample timestamp, and clarify socksport 0
Roger Dingledine [Mon, 23 Apr 2012 07:10:40 +0000 (03:10 -0400)] 
update the torrc.sample timestamp, and clarify socksport 0

13 years agofold in remaining changes
Roger Dingledine [Mon, 23 Apr 2012 06:36:19 +0000 (02:36 -0400)] 
fold in remaining changes

13 years agoMerge remote-tracking branch 'nickm/bug5438'
Roger Dingledine [Mon, 23 Apr 2012 06:03:40 +0000 (02:03 -0400)] 
Merge remote-tracking branch 'nickm/bug5438'

13 years agofurther changelog cleanups
Roger Dingledine [Mon, 23 Apr 2012 05:22:59 +0000 (01:22 -0400)] 
further changelog cleanups

13 years agoDon't reset intro-point creation rate-limiting timer
Robert Ransom [Tue, 17 Apr 2012 12:40:36 +0000 (05:40 -0700)] 
Don't reset intro-point creation rate-limiting timer

Previously, we would reset it at the drop of a hat -- every time a second
passes without any of the intro-point circs already launched for the
service failing.

Fixes bug 4607.

13 years agoMerge remote-tracking branch 'public/bug5647_cleanup'
Nick Mathewson [Fri, 20 Apr 2012 15:28:57 +0000 (11:28 -0400)] 
Merge remote-tracking branch 'public/bug5647_cleanup'

13 years agostart to fold in changelog entries
Roger Dingledine [Thu, 19 Apr 2012 23:14:47 +0000 (19:14 -0400)] 
start to fold in changelog entries

13 years agoMerge remote-tracking branch 'asn-mytor/bug5601'
Nick Mathewson [Thu, 19 Apr 2012 21:53:19 +0000 (17:53 -0400)] 
Merge remote-tracking branch 'asn-mytor/bug5601'

13 years agoMake base64_decode in rend_parse_client_keys more foolproof
Nick Mathewson [Thu, 19 Apr 2012 21:13:47 +0000 (17:13 -0400)] 
Make base64_decode in rend_parse_client_keys more foolproof

In general, whenever we can, we should be doing
  base64_decode(buf, sizeof(buf), s, strlen(s)),
and not
  base_64_decode(buf, expr1, s, expr2)
where we hope that expr1 is a good name for the size of buf and expr2
is a good formula for the length of the base64 expression in s.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 19 Apr 2012 21:08:09 +0000 (17:08 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoinitial round of changelog stanza cleanup
Roger Dingledine [Thu, 19 Apr 2012 19:10:33 +0000 (15:10 -0400)] 
initial round of changelog stanza cleanup

13 years agoFix a log-uninitialized-buffer bug.
Nick Mathewson [Thu, 19 Apr 2012 03:02:09 +0000 (23:02 -0400)] 
Fix a log-uninitialized-buffer bug.

Fix for 5647; bugfix on 0.2.1.5-alpha.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 19 Apr 2012 02:30:02 +0000 (22:30 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/rendservice.c

Conflicts were due to new NON_ANONYMOUS_MODE_ENABLED tor2web code; I
think I resolved them correctly.

13 years agorend_service_introduce(): do protocol violation check before anything else.
George Kadianakis [Wed, 18 Apr 2012 22:47:37 +0000 (00:47 +0200)] 
rend_service_introduce(): do protocol violation check before anything else.

(Cherry-picked from 6ba13e4 by nickm)

13 years agoRemove needless check for a buffer that could not be NULL.
Nick Mathewson [Wed, 18 Apr 2012 14:38:39 +0000 (10:38 -0400)] 
Remove needless check for a buffer that could not be NULL.

Fixes coverity CID 508: coverity scan doesn't like checking a
variable for non-NULL after it has been definitely dereferenced.

This should take us back down to zero coverity issues.

13 years agoDon't fetch v2 networkstatuses from caches, even if auths are down
Nick Mathewson [Tue, 17 Apr 2012 16:09:19 +0000 (12:09 -0400)] 
Don't fetch v2 networkstatuses from caches, even if auths are down

Fix for 5635; fix on 0.2.2.26-beta, where caches stopped fetching this
information.

13 years agoDocument unit of bandwidth related options in sample torrc.
Peter Palfrader [Fri, 13 Apr 2012 18:25:36 +0000 (20:25 +0200)] 
Document unit of bandwidth related options in sample torrc.

13 years agoFix issues found by nickm.
George Kadianakis [Thu, 12 Apr 2012 20:42:37 +0000 (22:42 +0200)] 
Fix issues found by nickm.

* Document fmt_addr_impl() and friends.
* Parenthesize macro arguments.
* Rename get_first_listener_addrport_for_pt() to
  get_first_listener_addrport_string().
* Handle port_cfg_t with no_listen.
* Handle failure of router_get_active_listener_port_by_type().
* Add an XXX to router_get_active_listener_port_by_type().

13 years agoTrivially refactor validate_pluggable_transports_config().
George Kadianakis [Wed, 11 Apr 2012 23:35:46 +0000 (01:35 +0200)] 
Trivially refactor validate_pluggable_transports_config().

* Remove the ugly if statement.
* constify 'bridge_info_t' in SMARTLIST_FOREACH_BEGIN.

13 years agoImprove the message of validate_pluggable_transports_config().
George Kadianakis [Wed, 11 Apr 2012 23:27:58 +0000 (01:27 +0200)] 
Improve the message of validate_pluggable_transports_config().

13 years agoObsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
Nick Mathewson [Wed, 11 Apr 2012 14:59:11 +0000 (10:59 -0400)] 
Obsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays

Closes ticket 4572.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 11 Apr 2012 14:06:49 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge branch 'bug5593' into maint-0.2.2
Nick Mathewson [Wed, 11 Apr 2012 14:04:31 +0000 (10:04 -0400)] 
Merge branch 'bug5593' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 11 Apr 2012 13:26:37 +0000 (09:26 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoUpdate to the April 2012 GeoIP database.
Karsten Loesing [Wed, 11 Apr 2012 12:15:49 +0000 (14:15 +0200)] 
Update to the April 2012 GeoIP database.

13 years agoInclude a Host: header with any HTTP/1.1 proxy request
Nick Mathewson [Tue, 10 Apr 2012 16:00:20 +0000 (12:00 -0400)] 
Include a Host: header with any HTTP/1.1 proxy request

Bugfix on 0.2.2.1-alpha, which added the orginal HTTP proxy
authentication code.  Fix for bug 5593.

13 years agoSimplify DH prime generation logic some.
Sebastian Hahn [Sat, 7 Apr 2012 23:07:53 +0000 (01:07 +0200)] 
Simplify DH prime generation logic some.

This is just refactoring work here. The old logic was kind of
convoluted, especially after the bug 5572 fix. We don't actually need to
distinguish so many cases here. Dropping detection of the
"!old_options || !old_options->DynamicDHGroups" case is fine because
that's the same that we'd do for clients.

Also add a changes file for bug 5572.

13 years agofix bug 5572
Daniel 'koolfy' Faucon [Sat, 7 Apr 2012 21:56:52 +0000 (23:56 +0200)] 
fix bug 5572

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 5 Apr 2012 01:05:42 +0000 (21:05 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoWrap long line; strlen("ides")<strlen("turtles").
Nick Mathewson [Thu, 5 Apr 2012 01:05:19 +0000 (21:05 -0400)] 
Wrap long line; strlen("ides")<strlen("turtles").

13 years agoides has become turtles, and gotten a new IP address
Sebastian Hahn [Wed, 4 Apr 2012 23:51:04 +0000 (01:51 +0200)] 
ides has become turtles, and gotten a new IP address

As per ticket 5569

13 years agoMerge remote-tracking branch 'asn-mytor/bug5558_take2'
Nick Mathewson [Tue, 3 Apr 2012 16:06:07 +0000 (12:06 -0400)] 
Merge remote-tracking branch 'asn-mytor/bug5558_take2'

13 years agotor_vsscanf(): Don't return -1 if '%%' doesn't match.
George Kadianakis [Tue, 3 Apr 2012 14:20:24 +0000 (16:20 +0200)] 
tor_vsscanf(): Don't return -1 if '%%' doesn't match.

tor_vsscanf() is supposed to return the current number of matches on
match failure.