]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoAdd unit tests for path_is_relative
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:53:25 +0000 (22:53 +0100)] 
Add unit tests for path_is_relative

13 years agoSome more corner cases for tor_sscanf
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:53:08 +0000 (22:53 +0100)] 
Some more corner cases for tor_sscanf

13 years agoexpand_filename tests for trailing slash in $HOME
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:52:15 +0000 (22:52 +0100)] 
expand_filename tests for trailing slash in $HOME

13 years agoAdd some tests for expand_filename
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:42:48 +0000 (17:42 +0100)] 
Add some tests for expand_filename

13 years agoAdd two small tests for tor_sscanf
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:00:16 +0000 (17:00 +0100)] 
Add two small tests for tor_sscanf

13 years agoAdd test for broken escapes in parse_config_...
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:39:43 +0000 (17:39 +0100)] 
Add test for broken escapes in parse_config_...

13 years agoAdd some unit tests for parse_iso_time
Esteban Manchado Velázquez [Mon, 20 Feb 2012 15:57:30 +0000 (16:57 +0100)] 
Add some unit tests for parse_iso_time

13 years agoAdd tests for string_is_C_identifier
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:24:22 +0000 (13:24 +0100)] 
Add tests for string_is_C_identifier

13 years agoImprove coverage in string-related unit tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:20:32 +0000 (13:20 +0100)] 
Improve coverage in string-related unit tests

13 years agoImprove coverage in time-related unit tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:19:03 +0000 (13:19 +0100)] 
Improve coverage in time-related unit tests

13 years agoRemove unreliable assertion
Esteban Manchado Velázquez [Sat, 18 Feb 2012 18:29:48 +0000 (19:29 +0100)] 
Remove unreliable assertion

* This assertion fails when executing the whole suite, but not when executing
  this test by itself
* Ideally I'd prefer starting with a guaranteed empty directory, but it's not
  very important in this case as non-existence of other paths is being checked
  explicitly

13 years agoAdd extra tests for wrap_string
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:44:25 +0000 (22:44 +0100)] 
Add extra tests for wrap_string

13 years agoAdd extra tests for get_parent_directory
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:43:42 +0000 (22:43 +0100)] 
Add extra tests for get_parent_directory

13 years agoTweak test case text so it's clearer
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:33:49 +0000 (22:33 +0100)] 
Tweak test case text so it's clearer

13 years agoImprove eat_whitespace* unit tests
Esteban Manchado Velázquez [Sat, 11 Feb 2012 00:27:50 +0000 (01:27 +0100)] 
Improve eat_whitespace* unit tests

13 years agoPut expected first in n_bits_set_u8 unit tests
Esteban Manchado Velázquez [Sat, 11 Feb 2012 00:20:09 +0000 (01:20 +0100)] 
Put expected first in n_bits_set_u8 unit tests

13 years agoImprove tor_split_lines unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:30:11 +0000 (00:30 +0100)] 
Improve tor_split_lines unit tests

* Add some more test cases
* Switch to test_assert et al

13 years agoUse test_streq in join_win_cmdline unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:04:24 +0000 (00:04 +0100)] 
Use test_streq in join_win_cmdline unit tests

13 years agoUse test_eq et al in spawn_background unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:00:52 +0000 (00:00 +0100)] 
Use test_eq et al in spawn_background unit tests

13 years agoUse test_streq in format_helper_exit_status tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 22:41:39 +0000 (23:41 +0100)] 
Use test_streq in format_helper_exit_status tests

13 years agoImprove get_parent_directory unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 22:33:37 +0000 (23:33 +0100)] 
Improve get_parent_directory unit tests

* Add more test cases to the get_parent_directory tests
* Switch the parameter order so that the expected value is the first one

13 years agoImprove listdir unit tests
Esteban Manchado Velázquez [Thu, 9 Feb 2012 23:42:08 +0000 (00:42 +0100)] 
Improve listdir unit tests

13 years agoImprove a bit asprintf unit tests
Esteban Manchado Velázquez [Thu, 9 Feb 2012 23:21:00 +0000 (00:21 +0100)] 
Improve a bit asprintf unit tests

13 years agoRewrite the find_str_at_start_of_line unit tests
Esteban Manchado Velázquez [Wed, 8 Feb 2012 22:45:53 +0000 (23:45 +0100)] 
Rewrite the find_str_at_start_of_line unit tests

13 years agoImprove/extend strtok_r unit tests
Esteban Manchado Velázquez [Wed, 8 Feb 2012 22:28:21 +0000 (23:28 +0100)] 
Improve/extend strtok_r unit tests

* Add several failing tests (embedded in an "#if 0" block) for behaviour that
  doesn't match strtok_r
* Add another, passing, more interesting test
* Use test_eq_ptr(NULL, ...) instead of test_assert(NULL == ...)

13 years agoImprove tor_sscanf tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 21:05:47 +0000 (22:05 +0100)] 
Improve tor_sscanf tests

* Add many new test cases, tweak/improve existing ones, reorganize them a bit
* Switch the parameters in all test_eq calls so the expected value is the first
* Change all the "r = tor_sscanf(...);\ntest_eq(1, r)" to the more compact
  "test_eq(1, tor_sscanf(...))". It may be a tiny bit harder to find the
  tor_sscanf calls (it's the long lines anyway), but it saves a lot of lines,
  which should help readability.

13 years agoSmall fix in tor_sscanf documentation
Esteban Manchado Velázquez [Mon, 6 Feb 2012 21:04:24 +0000 (22:04 +0100)] 
Small fix in tor_sscanf documentation

13 years agoImprove test case for read_escaped_data unit test
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:53:07 +0000 (19:53 +0100)] 
Improve test case for read_escaped_data unit test

13 years agoTrivial readability changes in mmap unit tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:45:52 +0000 (19:45 +0100)] 
Trivial readability changes in mmap unit tests

13 years agoClean up and improve gzip unit tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:22:32 +0000 (19:22 +0100)] 
Clean up and improve gzip unit tests

* Switch some test_eq parameters so the expected is always the first parameter
* Drop some manual checks of compressed format magic numbers (they're pointless
  and they make the unit tests less readable and more fragile, considering
  we're already indirectly checking those magic numbers via the
  detect_compression_method function)
* Add a couple of extra assertions

13 years agoAdd/improve the rest of the strmisc tests
Esteban Manchado Velázquez [Sun, 5 Feb 2012 21:01:57 +0000 (22:01 +0100)] 
Add/improve the rest of the strmisc tests

13 years agoImprove tor_snprintf tests
Esteban Manchado Velázquez [Sun, 5 Feb 2012 16:53:01 +0000 (17:53 +0100)] 
Improve tor_snprintf tests

13 years agoAdd/improve tests for str{,case}cmp{start,end}
Esteban Manchado Velázquez [Sun, 5 Feb 2012 16:52:26 +0000 (17:52 +0100)] 
Add/improve tests for str{,case}cmp{start,end}

13 years agoAdd more/better tests in test_util_strmisc
Esteban Manchado Velázquez [Sun, 5 Feb 2012 00:22:29 +0000 (01:22 +0100)] 
Add more/better tests in test_util_strmisc

13 years agoTrivial cosmetic fix in test comments
Esteban Manchado Velázquez [Sun, 5 Feb 2012 00:21:33 +0000 (01:21 +0100)] 
Trivial cosmetic fix in test comments

13 years agoOrganize test_util_time in blocks
Esteban Manchado Velázquez [Sat, 4 Feb 2012 11:47:58 +0000 (12:47 +0100)] 
Organize test_util_time in blocks

* Separate the tests for different functions with a comment
* Move some test init code further down, closer to where it was actually being
  used

13 years agoAdd test for comments in the config parser
Esteban Manchado Velázquez [Fri, 3 Feb 2012 22:43:29 +0000 (23:43 +0100)] 
Add test for comments in the config parser

13 years agoRemove duplicated macro definition
Esteban Manchado Velázquez [Fri, 3 Feb 2012 22:36:09 +0000 (23:36 +0100)] 
Remove duplicated macro definition

13 years agoAdd test for broken hex parsing
Esteban Manchado Velázquez [Fri, 3 Feb 2012 22:28:40 +0000 (23:28 +0100)] 
Add test for broken hex parsing

* The test currently fails, but it's commented out (with an "#if 0")
* As a broken octal actually gives a parse error, it seems fair that this
  fails, too

13 years agoFix typo in config parser documentation
Esteban Manchado Velázquez [Fri, 3 Feb 2012 20:05:58 +0000 (21:05 +0100)] 
Fix typo in config parser documentation

13 years agoImprove config parser escaped content tests
Esteban Manchado Velázquez [Fri, 3 Feb 2012 20:05:17 +0000 (21:05 +0100)] 
Improve config parser escaped content tests

13 years agoAdd tests for escaped content in config
Esteban Manchado Velázquez [Fri, 3 Feb 2012 19:52:34 +0000 (20:52 +0100)] 
Add tests for escaped content in config

13 years agoAdd quoted content tests for the config parser
Esteban Manchado Velázquez [Thu, 2 Feb 2012 23:12:23 +0000 (00:12 +0100)] 
Add quoted content tests for the config parser

13 years agoFix documentation URLs in config file comments
Esteban Manchado Velázquez [Wed, 1 Feb 2012 23:09:38 +0000 (00:09 +0100)] 
Fix documentation URLs in config file comments

13 years agoMerge remote-tracking branch 'public/bug4361'
Nick Mathewson [Thu, 8 Mar 2012 19:23:52 +0000 (14:23 -0500)] 
Merge remote-tracking branch 'public/bug4361'

Conflicts:
src/or/command.c

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 8 Mar 2012 19:15:18 +0000 (14:15 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoFix compile warnings in openbsd malloc
Sebastian Hahn [Thu, 8 Mar 2012 18:27:05 +0000 (19:27 +0100)] 
Fix compile warnings in openbsd malloc

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 8 Mar 2012 15:50:33 +0000 (10:50 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge remote-tracking branch 'karsten/geoip-march2012' into maint-0.2.2
Nick Mathewson [Thu, 8 Mar 2012 15:50:03 +0000 (10:50 -0500)] 
Merge remote-tracking branch 'karsten/geoip-march2012' into maint-0.2.2

13 years agoUpdate to the March 2012 GeoIP database.
Karsten Loesing [Thu, 8 Mar 2012 08:35:15 +0000 (09:35 +0100)] 
Update to the March 2012 GeoIP database.

13 years agoRemove misleading function comment (bug 5324)
Roger Dingledine [Thu, 8 Mar 2012 02:07:30 +0000 (21:07 -0500)] 
Remove misleading function comment (bug 5324)

In the distant past, connection_handle_read() could be called when there
are pending bytes in the TLS object during the main loop. The design
since then has been to always read all pending bytes immediately, so
read events only trigger when the socket actually has bytes to read.

Resolves bug 5324.

13 years agoMerge remote-tracking branch 'public/bug4760'
Nick Mathewson [Mon, 5 Mar 2012 15:44:48 +0000 (10:44 -0500)] 
Merge remote-tracking branch 'public/bug4760'

13 years agoDon't leak the env_vars_sorted smartlist in process_environment_make
Nick Mathewson [Tue, 28 Feb 2012 18:25:39 +0000 (10:25 -0800)] 
Don't leak the env_vars_sorted smartlist in process_environment_make

Found by Coverity.

No changes/ file, because this bug has not been in a release yet.

13 years agoMerge remote-tracking branch 'sebastian/bug5231'
Nick Mathewson [Wed, 29 Feb 2012 20:16:15 +0000 (15:16 -0500)] 
Merge remote-tracking branch 'sebastian/bug5231'

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Wed, 29 Feb 2012 18:23:23 +0000 (13:23 -0500)] 
Merge branch 'maint-0.2.2'

13 years agonew ip address for maatuska
Roger Dingledine [Wed, 29 Feb 2012 18:22:41 +0000 (13:22 -0500)] 
new ip address for maatuska

13 years agowhitespace fix
Roger Dingledine [Wed, 29 Feb 2012 18:17:52 +0000 (13:17 -0500)] 
whitespace fix

13 years agoDon't cannibalize already cannibalized circuits
Sebastian Hahn [Sat, 25 Feb 2012 16:58:09 +0000 (17:58 +0100)] 
Don't cannibalize already cannibalized circuits

This ensures we don't build circuits that have 5 hops or more. Patch
contributed by wanoskarnet, thanks!

13 years agoWhen not fetching v2 dir info, don't require it for cleaning descriptors
Daniel Bryg [Thu, 23 Feb 2012 18:57:27 +0000 (13:57 -0500)] 
When not fetching v2 dir info, don't require it for cleaning descriptors

Bugfix on 0.2.2.26-beta, which introduced the idea of caches not
cacheing v2 info.  Fixes bug 4838.

13 years agoMerge remote-tracking branch 'sebastian/bug5161'
Nick Mathewson [Mon, 20 Feb 2012 18:00:17 +0000 (13:00 -0500)] 
Merge remote-tracking branch 'sebastian/bug5161'

13 years agoMerge remote-tracking branch 'pmezard/armv5'
Nick Mathewson [Mon, 20 Feb 2012 17:53:49 +0000 (12:53 -0500)] 
Merge remote-tracking branch 'pmezard/armv5'

13 years agoFix off-by-one error in test_util_make_environment
Patrick Mézard [Mon, 20 Feb 2012 13:12:50 +0000 (14:12 +0100)] 
Fix off-by-one error in test_util_make_environment

13 years agoFix crypto_hmac_sha256 documentation comment
Robert Ransom [Mon, 6 Feb 2012 10:29:48 +0000 (02:29 -0800)] 
Fix crypto_hmac_sha256 documentation comment

13 years agoDon't redeclare environ if std headers already did
Sebastian Hahn [Sun, 19 Feb 2012 15:09:08 +0000 (16:09 +0100)] 
Don't redeclare environ if std headers already did

This would cause a redundant redeclaration warning on some versions of
Linux otherwise.

13 years agodocument a cool attack that we evaluated
Roger Dingledine [Fri, 17 Feb 2012 19:02:25 +0000 (14:02 -0500)] 
document a cool attack that we evaluated

13 years agoUse get_environment(), not environ.
Nick Mathewson [Fri, 17 Feb 2012 16:50:19 +0000 (11:50 -0500)] 
Use get_environment(), not environ.

13 years agoMerge branch 'bug5105-v2-squashed'
Nick Mathewson [Fri, 17 Feb 2012 16:50:10 +0000 (11:50 -0500)] 
Merge branch 'bug5105-v2-squashed'

Conflicts:
src/or/transports.c

13 years agoAdd unit tests for easily tested, non-trivial utility functions
Robert Ransom [Thu, 16 Feb 2012 06:41:49 +0000 (22:41 -0800)] 
Add unit tests for easily tested, non-trivial utility functions

13 years agoHeap-allocate strings returned by get_current_process_environment_variables
Robert Ransom [Wed, 15 Feb 2012 22:09:53 +0000 (14:09 -0800)] 
Heap-allocate strings returned by get_current_process_environment_variables

13 years agoPass process_environment_t * to tor_spawn_background
Robert Ransom [Mon, 13 Feb 2012 08:59:49 +0000 (00:59 -0800)] 
Pass process_environment_t * to tor_spawn_background

Now tor_spawn_background's prototype is OS-independent.

13 years agoRemove (void)envp from tor_spawn_background
Robert Ransom [Mon, 13 Feb 2012 08:47:54 +0000 (00:47 -0800)] 
Remove (void)envp from tor_spawn_background

The envp argument is used on Windows.

13 years agoRewrite managed proxy environment setup code
Robert Ransom [Mon, 13 Feb 2012 08:46:18 +0000 (00:46 -0800)] 
Rewrite managed proxy environment setup code

Now, the environment setup is entirely OS-independent, as well as less
hacky and brittle.

13 years agoChange type of unixoid_environment_block to match tor_spawn_background's arg
Robert Ransom [Mon, 13 Feb 2012 08:43:48 +0000 (00:43 -0800)] 
Change type of unixoid_environment_block to match tor_spawn_background's arg

13 years agoAdd set_environment_variable_in_smartlist
Robert Ransom [Mon, 13 Feb 2012 05:17:11 +0000 (21:17 -0800)] 
Add set_environment_variable_in_smartlist

13 years agoAdd get_current_process_environment_variables
Robert Ransom [Mon, 13 Feb 2012 04:34:52 +0000 (20:34 -0800)] 
Add get_current_process_environment_variables

13 years agoAdd process_environment_make and related utilities
Robert Ransom [Mon, 13 Feb 2012 04:14:48 +0000 (20:14 -0800)] 
Add process_environment_make and related utilities

13 years agoAdd tor_calloc
Robert Ransom [Mon, 13 Feb 2012 04:09:56 +0000 (20:09 -0800)] 
Add tor_calloc

13 years agoMerge remote-tracking branch 'asn/bug4725_take2'
Nick Mathewson [Thu, 16 Feb 2012 20:22:15 +0000 (15:22 -0500)] 
Merge remote-tracking branch 'asn/bug4725_take2'

13 years agoDowngrade "Registered server transport" msg to notice. Bug 5136
Nick Mathewson [Wed, 15 Feb 2012 17:58:36 +0000 (12:58 -0500)] 
Downgrade "Registered server transport" msg to notice. Bug 5136

13 years agoAdd a belated changes file for #4725.
George Kadianakis [Tue, 14 Feb 2012 23:25:39 +0000 (01:25 +0200)] 
Add a belated changes file for #4725.

13 years agoInclude compat.h from natpmp-helper to fix build
Sebastian Hahn [Tue, 14 Feb 2012 20:53:50 +0000 (21:53 +0100)] 
Include compat.h from natpmp-helper to fix build

This means tor_socket_t is declared.

13 years agoUse _NSGetEnviron() instead of environ where required
Sebastian Hahn [Tue, 14 Feb 2012 11:21:03 +0000 (12:21 +0100)] 
Use _NSGetEnviron() instead of environ where required

OS X would otherwise crash with a segfault when linked statically to
some libraries.

13 years agoMake ht.h conform to Tor's code style again
Sebastian Hahn [Tue, 14 Feb 2012 10:13:06 +0000 (11:13 +0100)] 
Make ht.h conform to Tor's code style again

When porting over changes from libevent, a bunch of tabs and a couple of
long lines got introduced.

13 years agoPort over the last ht.h changes from libevent: avoid _reserved identifiers
Nick Mathewson [Mon, 13 Feb 2012 23:40:30 +0000 (18:40 -0500)] 
Port over the last ht.h changes from libevent: avoid _reserved identifiers

13 years agoPort over ht.h improvements from Libevent.
Nick Mathewson [Mon, 13 Feb 2012 23:06:40 +0000 (18:06 -0500)] 
Port over ht.h improvements from Libevent.

There is a facility (not used now in Tor) to avoid storing the hash
of a given type if it is a fast-to-calculate hash.

There are also a few ancient-openbsd compilation issues fixed here.

The fact that Tor says INLINE while Libevent says inline remains
unaddressed.

13 years agoht.h comment tweaks, upstreamed from libevent
Nick Mathewson [Mon, 13 Feb 2012 22:56:13 +0000 (17:56 -0500)] 
ht.h comment tweaks, upstreamed from libevent

13 years agoOops; there were a couple of typos in the upstream tinytest
Nick Mathewson [Mon, 13 Feb 2012 22:48:43 +0000 (17:48 -0500)] 
Oops; there were a couple of typos in the upstream tinytest

13 years agoSynchronize with upstream tinytest again: remove _identifiers
Nick Mathewson [Mon, 13 Feb 2012 22:45:15 +0000 (17:45 -0500)] 
Synchronize with upstream tinytest again: remove _identifiers

13 years agoSynchronize with upstream tinytest.
Nick Mathewson [Mon, 13 Feb 2012 22:28:15 +0000 (17:28 -0500)] 
Synchronize with upstream tinytest.

The big change here is a patch (first added to Libevent by Ed Day)
to make sure that the CreateProcess forked-test trick works even
when the main test program is invoked without its .exe suffix.

13 years agobump to 0.2.3.12-alpha-dev
Roger Dingledine [Mon, 13 Feb 2012 15:53:49 +0000 (10:53 -0500)] 
bump to 0.2.3.12-alpha-dev

13 years agoadd a release blurb for 0.2.3.12-alpha tor-0.2.3.12-alpha
Roger Dingledine [Mon, 13 Feb 2012 14:59:23 +0000 (09:59 -0500)] 
add a release blurb for 0.2.3.12-alpha

13 years agobump to 0.2.3.12-alpha
Roger Dingledine [Mon, 13 Feb 2012 05:55:03 +0000 (00:55 -0500)] 
bump to 0.2.3.12-alpha

13 years agotoday is the day for a 0.2.3.12-alpha release
Roger Dingledine [Mon, 13 Feb 2012 05:54:57 +0000 (00:54 -0500)] 
today is the day for a 0.2.3.12-alpha release

13 years agorevise changelog entry for 5097 too
Roger Dingledine [Mon, 13 Feb 2012 05:16:05 +0000 (00:16 -0500)] 
revise changelog entry for 5097 too

13 years agoMerge branch 'tmp'
Roger Dingledine [Mon, 13 Feb 2012 05:14:17 +0000 (00:14 -0500)] 
Merge branch 'tmp'

13 years agoReinstate TOR_PR_EXTENDED_SERVER_PORT, just a little
Nick Mathewson [Mon, 13 Feb 2012 05:00:40 +0000 (00:00 -0500)] 
Reinstate TOR_PR_EXTENDED_SERVER_PORT, just a little

13 years agoMerge branch 'bug5082_squashed'
Nick Mathewson [Mon, 13 Feb 2012 04:40:23 +0000 (23:40 -0500)] 
Merge branch 'bug5082_squashed'

13 years agoset_managed_proxy_environment() can't fail anymore
Sebastian Hahn [Sun, 12 Feb 2012 05:57:35 +0000 (06:57 +0100)] 
set_managed_proxy_environment() can't fail anymore

It already couldn't fail on Windows, now it can't fail on non-Windows,
either.

13 years agoProperly set up environment for managed-mode obfsproxy
Sebastian Hahn [Sat, 11 Feb 2012 20:00:50 +0000 (21:00 +0100)] 
Properly set up environment for managed-mode obfsproxy

13 years agointegrate recent changes files
Roger Dingledine [Mon, 13 Feb 2012 04:39:30 +0000 (23:39 -0500)] 
integrate recent changes files