]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
12 years agoLower path use bias thresholds.
Mike Perry [Tue, 5 Feb 2013 00:57:09 +0000 (16:57 -0800)] 
Lower path use bias thresholds.

I noticed bad wifi networks can have low use success rates.

12 years agobump to 0.2.4.10-alpha-dev
Roger Dingledine [Mon, 4 Feb 2013 23:20:13 +0000 (18:20 -0500)] 
bump to 0.2.4.10-alpha-dev

12 years agobump to 0.2.4.10-alpha tor-0.2.4.10-alpha
Roger Dingledine [Mon, 4 Feb 2013 22:11:00 +0000 (17:11 -0500)] 
bump to 0.2.4.10-alpha

12 years agofold in changes for 0.2.4.10-alpha
Roger Dingledine [Mon, 4 Feb 2013 22:06:01 +0000 (17:06 -0500)] 
fold in changes for 0.2.4.10-alpha

12 years agoMerge branch 'authdir_quick_fix'
Nick Mathewson [Mon, 4 Feb 2013 17:34:14 +0000 (12:34 -0500)] 
Merge branch 'authdir_quick_fix'

12 years agoMerge branch 'bug8146_etc'
Nick Mathewson [Mon, 4 Feb 2013 17:34:09 +0000 (12:34 -0500)] 
Merge branch 'bug8146_etc'

12 years agoQuick fix on 5956 for authorities
Nick Mathewson [Mon, 4 Feb 2013 17:23:20 +0000 (12:23 -0500)] 
Quick fix on 5956 for authorities

Authorities don't set is_possible_guard on node_t, so they were
never deciding that they could build enough paths.  This is a quick
and dirty fix.

Bug not in any released version of Tor

12 years agoMerge branch 'bug8153'
Nick Mathewson [Mon, 4 Feb 2013 16:54:38 +0000 (11:54 -0500)] 
Merge branch 'bug8153'

12 years agoReinstate some fixes/tweaks from 6e4a4002
Nick Mathewson [Mon, 4 Feb 2013 16:51:39 +0000 (11:51 -0500)] 
Reinstate some fixes/tweaks from 6e4a4002

These seem to have gotten conflicted out of existence while mike was
working on path bias stuff.

Thanks to sysrqb for collecting these in a handy patch.

12 years agoFix a warning when building with --disable-curve25519
Nick Mathewson [Mon, 4 Feb 2013 16:34:23 +0000 (11:34 -0500)] 
Fix a warning when building with --disable-curve25519

It appears that the code for 7291 gave an unused-value warning when
built with --disable-curve25519.

12 years agoFix compilation with --disable-curve25519 option
Nick Mathewson [Mon, 4 Feb 2013 16:32:55 +0000 (11:32 -0500)] 
Fix compilation with --disable-curve25519 option

The fix is to move the two functions to format/parse base64
curve25519 public keys into a new "crypto_format.c" file.  I could
have put them in crypto.c, but that's a big file worth splitting
anyway.

Fixes bug 8153; bugfix on 0.2.4.8-alpha where I did the fix for 7869.

12 years agoWhen we mark a node as a sybil, mark it down and reset its uptime to 0
Nick Mathewson [Mon, 4 Feb 2013 16:11:54 +0000 (11:11 -0500)] 
When we mark a node as a sybil, mark it down and reset its uptime to 0

This prevents bug 8147, where such nodes would accrue points towards
Guard, Fast, HSDir, and so on.

Fixes bug 8147.

12 years agoIgnore tiny bandwidths entirely when computing thresholds
Nick Mathewson [Mon, 4 Feb 2013 15:47:08 +0000 (10:47 -0500)] 
Ignore tiny bandwidths entirely when computing thresholds

Another bug 8145 fix.

12 years agoIncrease the minimum value for the Fast flag to 4096.
Nick Mathewson [Mon, 4 Feb 2013 15:41:11 +0000 (10:41 -0500)] 
Increase the minimum value for the Fast flag to 4096.

Fix for 8145.

12 years agoRefactor should-count-towards-thresholds test into new function
Nick Mathewson [Mon, 4 Feb 2013 15:22:45 +0000 (10:22 -0500)] 
Refactor should-count-towards-thresholds test into new function

12 years agoWhen computing performance thresholds, ignore omitted-as-sybil nodes.
Nick Mathewson [Mon, 4 Feb 2013 15:19:26 +0000 (10:19 -0500)] 
When computing performance thresholds, ignore omitted-as-sybil nodes.

Fixes bug 8146.

12 years agoWhoops: evdns_log, not tor_log, in src/ext/eventdns.c
Nick Mathewson [Mon, 4 Feb 2013 15:07:02 +0000 (10:07 -0500)] 
Whoops: evdns_log,  not tor_log, in src/ext/eventdns.c

12 years agoMerge remote-tracking branch 'public/feature7706'
Nick Mathewson [Fri, 1 Feb 2013 22:24:08 +0000 (17:24 -0500)] 
Merge remote-tracking branch 'public/feature7706'

12 years agoMerge remote-tracking branch 'public/bug7708_023_v3_squashed'
Nick Mathewson [Fri, 1 Feb 2013 22:11:46 +0000 (17:11 -0500)] 
Merge remote-tracking branch 'public/bug7708_023_v3_squashed'

12 years agoClarify documentation of connection_finished_flushing
Nick Mathewson [Wed, 30 Jan 2013 22:07:32 +0000 (17:07 -0500)] 
Clarify documentation of connection_finished_flushing

12 years agoFix serious breakage in connection_handle_write_impl
Nick Mathewson [Tue, 11 Dec 2012 22:46:12 +0000 (17:46 -0500)] 
Fix serious breakage in connection_handle_write_impl

When we first implemented TLS, we assumed in conneciton_handle_write
that a TOR_TLS_WANT_WRITE from flush_buf_tls meant that nothing had
been written. But when we moved our buffers to a ring buffer
implementation back in 0.1.0.5-rc (!), we broke that invariant: it's
possible that some bytes have been written but nothing.

That's bad.  It means that if we do a sequence of TLS writes that ends
with a WANTWRITE, we don't notice that we flushed any bytes, and we
don't (I think) decrement buckets.

Fixes bug 7708; bugfix on 0.1.0.5-rc

12 years agoMerge branch 'ticket8081_squashed'
Nick Mathewson [Fri, 1 Feb 2013 22:03:12 +0000 (17:03 -0500)] 
Merge branch 'ticket8081_squashed'

12 years agoFix a couple of warnings on the 8081 branch.
Nick Mathewson [Fri, 1 Feb 2013 22:03:00 +0000 (17:03 -0500)] 
Fix a couple of warnings on the 8081 branch.

12 years agoAdd EntryGuardPathUseBias to state file keyword list.
Mike Perry [Thu, 31 Jan 2013 16:01:36 +0000 (12:01 -0400)] 
Add EntryGuardPathUseBias to state file keyword list.

12 years agoIncrement an informational counter for use failed state.
Mike Perry [Thu, 31 Jan 2013 14:17:11 +0000 (10:17 -0400)] 
Increment an informational counter for use failed state.

This informational counter is probably now redundant, but might as well keep
it consistent I guess.

12 years agoRename and relocate the bw weight scale param getter.
Mike Perry [Thu, 31 Jan 2013 02:41:10 +0000 (22:41 -0400)] 
Rename and relocate the bw weight scale param getter.

It had nothing to do with circuit build times.

12 years agoFix a log typo found by sysrqb.
Mike Perry [Thu, 31 Jan 2013 13:37:12 +0000 (09:37 -0400)] 
Fix a log typo found by sysrqb.

12 years agoBounds-check path bias rate parameters.
Mike Perry [Thu, 31 Jan 2013 02:21:36 +0000 (22:21 -0400)] 
Bounds-check path bias rate parameters.

The other remaining parameters don't really need range checks.

12 years agoRefactor code that rolls back the use state
Mike Perry [Thu, 31 Jan 2013 01:27:38 +0000 (21:27 -0400)] 
Refactor code that rolls back the use state

Also document it better.

Mention this refactoring in the comments for the path state machine.

12 years agoRefactor and rename pathbias rate evaluation.
Mike Perry [Thu, 31 Jan 2013 01:17:40 +0000 (21:17 -0400)] 
Refactor and rename pathbias rate evaluation.

12 years agoRefactor the scaling parameter fetching into a single function.
Mike Perry [Wed, 30 Jan 2013 22:40:46 +0000 (18:40 -0400)] 
Refactor the scaling parameter fetching into a single function.

Also, deprecate the torrc options for the scaling values. It's unlikely anyone
but developers will ever tweak them, even if we provided a single ratio value.

12 years agoMark entry guard state dirty everwhere the pathbias code touches it.
Mike Perry [Wed, 30 Jan 2013 21:51:37 +0000 (17:51 -0400)] 
Mark entry guard state dirty everwhere the pathbias code touches it.

12 years agoAdd a tristate to guard against unexpected circ purpose transitions
Mike Perry [Wed, 30 Jan 2013 21:46:25 +0000 (17:46 -0400)] 
Add a tristate to guard against unexpected circ purpose transitions

12 years agoClarify state transition and related pathbias comments
Mike Perry [Wed, 30 Jan 2013 21:01:10 +0000 (17:01 -0400)] 
Clarify state transition and related pathbias comments

12 years agoMerge branch 'rename_log_7599'
Nick Mathewson [Fri, 1 Feb 2013 21:23:26 +0000 (16:23 -0500)] 
Merge branch 'rename_log_7599'

12 years agoHelp us track bug 8093:
Roger Dingledine [Fri, 1 Feb 2013 21:22:34 +0000 (16:22 -0500)] 
Help us track bug 8093:

Improve the log message when "Bug/attack: unexpected sendme cell
from client" occurs.

12 years agofix wide lines from tor_log rename
Nick Mathewson [Fri, 1 Feb 2013 21:19:02 +0000 (16:19 -0500)] 
fix wide lines from tor_log rename

12 years agoFix a silly mistake in the tor_mathlog() documentation. Give it a unit test.
Nick Mathewson [Fri, 1 Feb 2013 21:09:16 +0000 (16:09 -0500)] 
Fix a silly mistake in the tor_mathlog() documentation. Give it a unit test.

12 years agoRemove old wrapper code and defines for keeping log() and log(3) apart
Nick Mathewson [Fri, 1 Feb 2013 20:47:46 +0000 (15:47 -0500)] 
Remove old wrapper code and defines for keeping log() and log(3) apart

This is the non-automated portion of bug 7599.

12 years agoRename log() to tor_log() for logging
Nick Mathewson [Fri, 1 Feb 2013 20:43:37 +0000 (15:43 -0500)] 
Rename log() to tor_log() for logging

This is meant to avoid conflict with the built-in log() function in
math.h.  It resolves ticket 7599.  First reported by dhill.

This was generated with the following perl script:

 #!/usr/bin/perl -w -i -p

 s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g;

 s/\blog\(/tor_log\(/g;

12 years agotypo in crypto_curve25519.c comment, spotted by rransom
Nick Mathewson [Thu, 31 Jan 2013 18:53:29 +0000 (13:53 -0500)] 
typo in crypto_curve25519.c comment, spotted by rransom

12 years agowhitespace fix
Nick Mathewson [Thu, 31 Jan 2013 18:26:25 +0000 (13:26 -0500)] 
whitespace fix

12 years agoMerge branch 'double-0-check'
Nick Mathewson [Thu, 31 Jan 2013 18:19:27 +0000 (13:19 -0500)] 
Merge branch 'double-0-check'

12 years agoUse %d, not %02d, for decimal percentages
Nick Mathewson [Wed, 30 Jan 2013 22:35:28 +0000 (17:35 -0500)] 
Use %d, not %02d, for decimal percentages

Cosmetic tweak on 5956; not in any released tor.

12 years agoMerge branch 'rename_queue_macros_squashed'
Nick Mathewson [Wed, 30 Jan 2013 17:58:59 +0000 (12:58 -0500)] 
Merge branch 'rename_queue_macros_squashed'

12 years agoRename all of the macros in tor_queue.h to start with TOR_
Nick Mathewson [Wed, 30 Jan 2013 17:27:19 +0000 (12:27 -0500)] 
Rename all of the macros in tor_queue.h to start with TOR_

12 years agoMerge branch 'bug5956_squashed'
Nick Mathewson [Wed, 30 Jan 2013 16:59:51 +0000 (11:59 -0500)] 
Merge branch 'bug5956_squashed'

12 years agoParameterize FRAC_USABLE_NEEDED for fraction of circuits
Nick Mathewson [Tue, 29 Jan 2013 16:05:13 +0000 (11:05 -0500)] 
Parameterize FRAC_USABLE_NEEDED for fraction of circuits

Instead of hardcoding the minimum fraction of possible paths to 0.6, we
take it from the user, and failing that from the consensus, and
failing that we fall back to 0.6.

12 years agoCompute whether we're ready to build circuits based on fraction of paths
Nick Mathewson [Fri, 18 Jan 2013 18:24:14 +0000 (13:24 -0500)] 
Compute whether we're ready to build circuits based on fraction of paths

Previously we did this based on the fraction of descriptors we
had. But really, we should be going based on what fraction of paths
we're able to build based on weighted bandwidth, since otherwise a
directory guard or two could make us behave quite oddly.

Implementation for feature 5956

12 years agoAdd an optional out-arg to count_usable_descriptors
Nick Mathewson [Fri, 18 Jan 2013 17:57:49 +0000 (12:57 -0500)] 
Add an optional out-arg to count_usable_descriptors

This way we get the usable nodes themselves, so we can feed them into
frac_nodes_with_descriptors

12 years agoAdd a function to compute fraction of nodes (by weighted bw) with descriptors
Nick Mathewson [Fri, 18 Jan 2013 17:56:47 +0000 (12:56 -0500)] 
Add a function to compute fraction of nodes (by weighted bw) with descriptors

12 years agoDocument the ?? country code.
Nick Mathewson [Wed, 30 Jan 2013 15:19:41 +0000 (10:19 -0500)] 
Document the ?? country code.

12 years agoDetect platforms where memset(0) doesn't set doubles to 0.0.
Nick Mathewson [Tue, 29 Jan 2013 22:38:15 +0000 (17:38 -0500)] 
Detect platforms where memset(0) doesn't set doubles to 0.0.

This is allowed by the C statndard, which permits you to represent
doubles any way you like, but in practice we have some code that
assumes that memset() clears doubles in structs.  Noticed as part of
7802 review; see 8081 for more info.

12 years agoFix unit test to not expect v2 directory request geoip info
Nick Mathewson [Tue, 29 Jan 2013 17:01:41 +0000 (12:01 -0500)] 
Fix unit test to not expect v2 directory request geoip info

When we implemented #5823 and removed v2 directory request info, we
never actually changed the unit tests not to expect it.

Fixes bug 8084; bug not in any released version of Tor.

12 years agoMerge branch 'bug7802' of ssh://git-rw.torproject.org/mikeperry/tor
Andrea Shepard [Tue, 29 Jan 2013 00:16:45 +0000 (16:16 -0800)] 
Merge branch 'bug7802' of ssh://git-rw.torproject.org/mikeperry/tor

12 years agoMerge branch 'time_based_onionqueue_v2' of ssh://git-rw.torproject.org/nickm/tor
Andrea Shepard [Thu, 24 Jan 2013 16:10:12 +0000 (08:10 -0800)] 
Merge branch 'time_based_onionqueue_v2' of ssh://git-rw.torproject.org/nickm/tor

12 years agoBug 8024: Check for null/closed channel before probing.
Mike Perry [Wed, 23 Jan 2013 05:03:28 +0000 (21:03 -0800)] 
Bug 8024: Check for null/closed channel before probing.

12 years agoMerge remote-tracking branch 'public/bug8012'
Nick Mathewson [Tue, 22 Jan 2013 14:54:30 +0000 (14:54 +0000)] 
Merge remote-tracking branch 'public/bug8012'

12 years agoMore of b30d06255c24165 for #6826: fix compat_libevent compilation
Nick Mathewson [Mon, 21 Jan 2013 18:24:10 +0000 (18:24 +0000)] 
More of b30d06255c24165 for #6826: fix compat_libevent compilation

It looks like there was a compilation error for 6826 on some
platforms.  Removing even more now-uncallable code to handle detecting
libevent versions before 1.3e.

Fixes bug 8012; bug not in any released Tor.

12 years agosquash! Remove a source of error during path bias scaling
Mike Perry [Sun, 20 Jan 2013 22:30:02 +0000 (14:30 -0800)] 
squash! Remove a source of error during path bias scaling

Improve debug logs and fix a state fencepost error.

12 years agosquash! Implement Path use bias accounting.
Mike Perry [Sun, 20 Jan 2013 22:24:25 +0000 (14:24 -0800)] 
squash! Implement Path use bias accounting.

Make a debug log more informative.

12 years agoPrevent early close of path bias testing circuits.
Mike Perry [Sun, 20 Jan 2013 05:16:24 +0000 (21:16 -0800)] 
Prevent early close of path bias testing circuits.

We need to let them live long enough to perform the test.

12 years agosquash! Remove a source of error during path bias scaling
Mike Perry [Sun, 20 Jan 2013 03:56:52 +0000 (19:56 -0800)] 
squash! Remove a source of error during path bias scaling

Move a log message about scaling to after we scale

12 years agoMerge remote-tracking branch 'karsten/bug5823'
Nick Mathewson [Sat, 19 Jan 2013 14:36:55 +0000 (09:36 -0500)] 
Merge remote-tracking branch 'karsten/bug5823'

12 years agoBug 7802 changes file.
Mike Perry [Sat, 19 Jan 2013 05:02:57 +0000 (21:02 -0800)] 
Bug 7802 changes file.

12 years agoDocument path use bias options in the manpage.
Mike Perry [Sat, 19 Jan 2013 04:54:20 +0000 (20:54 -0800)] 
Document path use bias options in the manpage.

12 years agoRemove a source of error during path bias scaling
Mike Perry [Sat, 19 Jan 2013 04:17:23 +0000 (20:17 -0800)] 
Remove a source of error during path bias scaling

If any circuits were opened during a scaling event, we were scaling attempts
and successes by different amounts. This leads to rounding error.

The fix is to record how many circuits are in a state that hasn't been fully
counted yet, and subtract that before scaling, and add it back afterwords.

12 years agoDon't immediately count cannibalized circs as used.
Mike Perry [Sat, 19 Jan 2013 03:34:01 +0000 (19:34 -0800)] 
Don't immediately count cannibalized circs as used.

Since they use RELAY_EARLY (which can be seen by all hops on the path),
it's not safe to say they actually count as a successful use.

There are also problems with trying to allow them to finish extending due to
the circuit purpose state machine logic. It is way less complicated (and
possibly more semantically coherent) to simply wait until we actually try to
do something with them before claiming we 'used' them.

Also, we shouldn't call timed out circuits 'used' either, for semantic
consistency.

12 years agoRoll back the path_state for circs if we detatch a stream.
Mike Perry [Sat, 19 Jan 2013 03:29:17 +0000 (19:29 -0800)] 
Roll back the path_state for circs if we detatch a stream.

An adversary could let the first stream request succeed (ie the resolve), but
then tag and timeout the remainder (via cell dropping), forcing them on new
circuits.

Rolling back the state will cause us to probe such circuits, which should lead
to probe failures in the event of such tagging due to either unrecognized
cells coming in while we wait for the probe, or the cipher state getting out
of sync in the case of dropped cells.

12 years agoImplement Path use bias accounting.
Mike Perry [Sat, 19 Jan 2013 03:37:16 +0000 (19:37 -0800)] 
Implement Path use bias accounting.

Path use bias measures how often we can actually succeed using the circuits we
actually try to use. It is a subset of path bias accounting, but it is
computed as a separate statistic because the rate of client circuit use may
vary depending on use case.

12 years agoRemove -v flag from autoreconf by default
Nick Mathewson [Fri, 18 Jan 2013 23:00:51 +0000 (18:00 -0500)] 
Remove -v flag from autoreconf by default

You can get it back by saying ./autogen.sh -v

Patch from onizuka; for bug 4664.

This isn't a complete fix, since starting from a clean checkout still
reports that it's installing stuff

12 years agoSplit smartlist_choose_node_by_bandwidth_weights
Nick Mathewson [Fri, 18 Jan 2013 17:24:54 +0000 (12:24 -0500)] 
Split smartlist_choose_node_by_bandwidth_weights

This is a minimal refactoring to expose the weighted bandwidth
calculations for each node so I can use them to see what fraction of
nodes, weighted by bandwidth, we have descriptors for.

12 years agoWhen excluding nodes by country, exclude {??} and {A1} too
Nick Mathewson [Thu, 17 Jan 2013 23:07:36 +0000 (18:07 -0500)] 
When excluding nodes by country, exclude {??} and {A1} too

This is ticket 7706, reported by "bugcatcher."  The rationale here
is that if somebody says 'ExcludeNodes {tv}', then they probably
don't just want to block definitely Tuvaluan nodes: they also want
to block nodes that have unknown country, since for all they know
such nodes are also in Tuvalu.

This behavior is controlled by a new GeoIPExcludeUnknown autobool
option.  With the default (auto) setting, we exclude ?? and A1 if
any country is excluded.  If the option is 1, we add ?? and A1
unconditionally; if the option is 0, we never add them.

(Right now our geoip file doesn't actually seem to include A1: I'm
including it here in case it comes back.)

This feature only takes effect if you have a GeoIP file.  Otherwise
you'd be excluding every node.

12 years agoReplace base-{16,32,64} with base{16,32,64} in the code
Nick Mathewson [Thu, 17 Jan 2013 21:08:28 +0000 (16:08 -0500)] 
Replace base-{16,32,64} with base{16,32,64} in the code

Patch from onizuka generated with

 find ./ -type f -perm -u+rw -exec sed -ri 's/(Base)-(16|32|64)/\1\2/gi' {} \;

Fixes issue 6875 on Tor.

12 years agoMerge branch '024_msvc_more'
Nick Mathewson [Thu, 17 Jan 2013 20:54:51 +0000 (15:54 -0500)] 
Merge branch '024_msvc_more'

12 years agoAnother msvc changes entry
Nick Mathewson [Thu, 17 Jan 2013 20:54:21 +0000 (15:54 -0500)] 
Another msvc changes entry

12 years agoFor now, always use donna32 on msvc
Nick Mathewson [Thu, 17 Jan 2013 19:44:26 +0000 (14:44 -0500)] 
For now, always use donna32 on msvc

12 years agoAdd ntor-related modules to the Makefiles.nmake
Nick Mathewson [Thu, 17 Jan 2013 19:38:52 +0000 (14:38 -0500)] 
Add ntor-related modules to the Makefiles.nmake

12 years agoFix an MSVC warning in onion.h prototypes
Nick Mathewson [Thu, 17 Jan 2013 19:38:15 +0000 (14:38 -0500)] 
Fix an MSVC warning in onion.h prototypes

12 years agoEven more code-removal for 6826
Nick Mathewson [Thu, 17 Jan 2013 19:40:12 +0000 (14:40 -0500)] 
Even more code-removal for 6826

(Pull on a thread and the whole sweater unravels.)

12 years agoAdd a missing part of bug 7311's makefile.nmake tweaks
Nick Mathewson [Thu, 17 Jan 2013 15:01:22 +0000 (10:01 -0500)] 
Add a missing part of bug 7311's makefile.nmake tweaks

Fix by "ultramage".

This already has a changes entry.

12 years agoMerge branch 'bug6826_squashed'
Nick Mathewson [Thu, 17 Jan 2013 14:23:07 +0000 (09:23 -0500)] 
Merge branch 'bug6826_squashed'

12 years agoDrop detection logic for pre-1.3 busted libevents
Nick Mathewson [Wed, 16 Jan 2013 19:31:01 +0000 (14:31 -0500)] 
Drop detection logic for pre-1.3 busted libevents

This won't actually break them any worse than they were broken before:
it just removes a set of warnings that nobody was actually seeing, I
hope.

Closes 6826

12 years agoMerge remote-tracking branch 'public/bug6302'
Nick Mathewson [Thu, 17 Jan 2013 14:20:24 +0000 (09:20 -0500)] 
Merge remote-tracking branch 'public/bug6302'

12 years agoRemove dirreq-v2-* lines from extra-info descriptors.
Karsten Loesing [Thu, 17 Jan 2013 09:45:19 +0000 (10:45 +0100)] 
Remove dirreq-v2-* lines from extra-info descriptors.

Implements the rest of #5823.

12 years agoImplement proposal 204: ignore subdomains in hidden service addresses
Jérémy Bobbio [Fri, 6 Jul 2012 13:31:47 +0000 (15:31 +0200)] 
Implement proposal 204: ignore subdomains in hidden service addresses

The implementation is pretty straightforward: parse_extended_hostname() is
modified to drop any leading components from an address like
'foo.aaaaaaaaaaaaaaaa.onion'.

12 years agoMerge branch '024_msvc_squashed'
Nick Mathewson [Thu, 17 Jan 2013 03:32:12 +0000 (22:32 -0500)] 
Merge branch '024_msvc_squashed'

Conflicts:
src/or/or.h
 srcwin32/orconfig.h

12 years agoFix an instance of snprintf; don't use _snprintf directly
Nick Mathewson [Wed, 19 Dec 2012 21:51:53 +0000 (16:51 -0500)] 
Fix an instance of snprintf; don't use _snprintf directly

12 years agoChanges files for 024_msvc branch
Nick Mathewson [Tue, 18 Dec 2012 20:09:13 +0000 (15:09 -0500)] 
Changes files for 024_msvc branch

12 years agoWhen building with MSVC, call every enum bitfield unsigned
Nick Mathewson [Tue, 18 Dec 2012 19:45:12 +0000 (14:45 -0500)] 
When building with MSVC, call every enum bitfield unsigned

Fixes bug 7305.

12 years agoAdd HAVE_EVENT_BASE_LOOPEXIT to win32/orconfig.h
Nick Mathewson [Tue, 18 Dec 2012 19:21:13 +0000 (14:21 -0500)] 
Add HAVE_EVENT_BASE_LOOPEXIT to win32/orconfig.h

Fix for bug 7308

12 years agoAdd more test modules for nmake makefiles
Nick Mathewson [Tue, 18 Dec 2012 18:59:59 +0000 (13:59 -0500)] 
Add more test modules for nmake makefiles

12 years agoTry to build tinytest.obj from the right sources
Nick Mathewson [Tue, 18 Dec 2012 18:58:11 +0000 (13:58 -0500)] 
Try to build tinytest.obj from the right sources

12 years agouse the /Fe flag with msvc
Nick Mathewson [Tue, 18 Dec 2012 18:41:11 +0000 (13:41 -0500)] 
use the /Fe flag with msvc

Fixes 7309

12 years agoAdd missing targets to src/test/Makefile.nmake. Fix for 7316
Nick Mathewson [Tue, 18 Dec 2012 18:38:01 +0000 (13:38 -0500)] 
Add missing targets to src/test/Makefile.nmake. Fix for 7316

12 years agoAdd HAVE_EVENT2_DNS_H to MSVC orconfig.h
Nick Mathewson [Tue, 18 Dec 2012 18:34:17 +0000 (13:34 -0500)] 
Add HAVE_EVENT2_DNS_H to MSVC orconfig.h

Fix for bug 7313

12 years agoFix a const warning under msvc
Nick Mathewson [Tue, 18 Dec 2012 18:33:15 +0000 (13:33 -0500)] 
Fix a const warning under msvc

12 years agoAdd clean target and test subdir to makefile.nmake
Nick Mathewson [Tue, 18 Dec 2012 18:24:19 +0000 (13:24 -0500)] 
Add clean target and test subdir to makefile.nmake

12 years agoAdd missing objects to Makefile.nmake
Nick Mathewson [Tue, 18 Dec 2012 18:20:32 +0000 (13:20 -0500)] 
Add missing objects to Makefile.nmake

12 years agoAdd missing includes and libs to makefile.nmake
Nick Mathewson [Tue, 18 Dec 2012 18:16:48 +0000 (13:16 -0500)] 
Add missing includes and libs to makefile.nmake

Fixes bugs 7312 and 7310.