]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
12 years agoFix unit tests with --disable-curve25519
Nick Mathewson [Sun, 8 Sep 2013 21:14:07 +0000 (17:14 -0400)] 
Fix unit tests with --disable-curve25519

12 years agoMerge remote-tracking branch 'public/bug9645'
Nick Mathewson [Thu, 5 Sep 2013 13:59:07 +0000 (09:59 -0400)] 
Merge remote-tracking branch 'public/bug9645'

12 years agoMerge branch 'maint-0.2.4'
Roger Dingledine [Thu, 5 Sep 2013 06:34:58 +0000 (02:34 -0400)] 
Merge branch 'maint-0.2.4'

12 years agocollect and log statistics about onionskins received/processed
Roger Dingledine [Wed, 4 Sep 2013 21:43:15 +0000 (17:43 -0400)] 
collect and log statistics about onionskins received/processed

we skip onionskins that came from non-relays, so we're less likely to
run into privacy troubles.

starts to implement ticket 9658.

12 years agoRevert e443beff and solve it a different way
Roger Dingledine [Thu, 5 Sep 2013 05:41:07 +0000 (01:41 -0400)] 
Revert e443beff and solve it a different way

Now we explicitly check for overflow.

This approach seemed smarter than a cascade of "change int to unsigned
int and hope nothing breaks right before the release".

Nick, feel free to fix in a better way, maybe in master.

12 years agodon't let recently_chosen_ntors overflow
Roger Dingledine [Thu, 5 Sep 2013 05:27:46 +0000 (01:27 -0400)] 
don't let recently_chosen_ntors overflow

with commit c6f1668d we let it grow arbitrarily large.

it can still overflow, but the damage is very small now.

12 years agoMerge branch 'maint-0.2.4'
Roger Dingledine [Thu, 5 Sep 2013 03:44:39 +0000 (23:44 -0400)] 
Merge branch 'maint-0.2.4'

Conflicts:
src/test/test.c

12 years agonickm wants us to prioritize tap in a currently-rare edge case
Roger Dingledine [Wed, 4 Sep 2013 23:43:46 +0000 (19:43 -0400)] 
nickm wants us to prioritize tap in a currently-rare edge case

12 years agoadd a changes entry for ticket 9574
Roger Dingledine [Wed, 4 Sep 2013 06:10:30 +0000 (02:10 -0400)] 
add a changes entry for ticket 9574

12 years agoBe more general in calculating expected onion queue processing time
Roger Dingledine [Wed, 4 Sep 2013 02:15:33 +0000 (22:15 -0400)] 
Be more general in calculating expected onion queue processing time

Now we consider the TAP cells we'll process while draining the NTor
queue, and vice versa.

12 years agolet the NumNTorsPerTAP consensus param override our queue choice
Roger Dingledine [Wed, 4 Sep 2013 00:58:15 +0000 (20:58 -0400)] 
let the NumNTorsPerTAP consensus param override our queue choice

12 years agodo a lopsided round-robin between the onion queues
Roger Dingledine [Wed, 4 Sep 2013 00:40:16 +0000 (20:40 -0400)] 
do a lopsided round-robin between the onion queues

that way tap won't starve entirely, but we'll still handle ntor requests
quicker.

12 years agocheck bounds on handshake_type more thoroughly
Roger Dingledine [Tue, 3 Sep 2013 22:48:16 +0000 (18:48 -0400)] 
check bounds on handshake_type more thoroughly

12 years agoadd info-level logs to help track onion queue sizes
Roger Dingledine [Sun, 1 Sep 2013 20:51:27 +0000 (16:51 -0400)] 
add info-level logs to help track onion queue sizes

12 years agorefactor and give it unit tests
Roger Dingledine [Sun, 1 Sep 2013 08:40:05 +0000 (04:40 -0400)] 
refactor and give it unit tests

12 years agoSeparate cpuworker queues by handshake type
Roger Dingledine [Sun, 1 Sep 2013 03:35:58 +0000 (23:35 -0400)] 
Separate cpuworker queues by handshake type

Now we prioritize ntor create cells over tap create cells.

Starts to address ticket 9574.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Wed, 4 Sep 2013 20:11:20 +0000 (16:11 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
src/or/circuituse.c

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Wed, 4 Sep 2013 20:08:02 +0000 (16:08 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Conflicts:
src/or/circuitbuild.c

12 years agoMerge branch 'bug9671_023' into maint-0.2.3
Nick Mathewson [Wed, 4 Sep 2013 20:04:47 +0000 (16:04 -0400)] 
Merge branch 'bug9671_023' into maint-0.2.3

12 years agouse !cbt_disabled in place of LearnCBT to avoid needless circs
Nick Mathewson [Wed, 4 Sep 2013 19:51:13 +0000 (15:51 -0400)] 
use !cbt_disabled in place of LearnCBT to avoid needless circs

This would make us do testing circuits "even when cbt is disabled by
consensus, or when we're a directory authority, or when we've failed
to write cbt history to our state file lately." (Roger's words.)

This is a fix for 9671 and an improvement in our fix for 5049.
The original misbehavior was in 0.2.2.14-alpha; the incomplete
fix was in 0.2.3.17-beta.

12 years agoAdd Extended ORPort information to the man page.
George Kadianakis [Wed, 4 Sep 2013 11:20:42 +0000 (14:20 +0300)] 
Add Extended ORPort information to the man page.

12 years agoAdd a clarification to gcov instructions
Nick Mathewson [Tue, 3 Sep 2013 19:44:13 +0000 (15:44 -0400)] 
Add a clarification to gcov instructions

12 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Tue, 3 Sep 2013 19:41:50 +0000 (15:41 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

12 years agoMerge branch 'bug9400_024_squashed' into maint-0.2.4
Nick Mathewson [Tue, 3 Sep 2013 19:38:54 +0000 (15:38 -0400)] 
Merge branch 'bug9400_024_squashed' into maint-0.2.4

12 years agoAvoid a double-close on one failing case of the socketpair replacement code
Nick Mathewson [Tue, 6 Aug 2013 20:41:57 +0000 (16:41 -0400)] 
Avoid a double-close on one failing case of the socketpair replacement code

Fix for bug 9400, spotted by coverity. Bug introduced in revision 2cb4f7a4
(subversion revision r389).

12 years agoFix bug 9645: don't forget an md just because we can't save it.
Nick Mathewson [Tue, 3 Sep 2013 18:25:01 +0000 (14:25 -0400)] 
Fix bug 9645: don't forget an md just because we can't save it.

12 years agoFix some "ISO C90 forbids mixed declarations and code" warnings
Nick Mathewson [Tue, 3 Sep 2013 17:39:31 +0000 (13:39 -0400)] 
Fix some "ISO C90 forbids mixed declarations and code" warnings

12 years agoFix warnings in test_config_fix_my_family
Nick Mathewson [Tue, 3 Sep 2013 17:35:44 +0000 (13:35 -0400)] 
Fix warnings in test_config_fix_my_family

12 years agoMerge remote-tracking branch 'Ryman/bug4341'
Nick Mathewson [Tue, 3 Sep 2013 17:16:22 +0000 (13:16 -0400)] 
Merge remote-tracking branch 'Ryman/bug4341'

12 years agoMinor changes to adhere to codebase conventions.
Kevin Butler [Tue, 3 Sep 2013 16:47:03 +0000 (17:47 +0100)] 
Minor changes to adhere to codebase conventions.

12 years agoMerge remote-tracking branch 'public/bug2767'
Nick Mathewson [Tue, 3 Sep 2013 16:37:36 +0000 (12:37 -0400)] 
Merge remote-tracking branch 'public/bug2767'

12 years agoHandle HTTP minor versions greater than 9
Nick Mathewson [Tue, 3 Sep 2013 15:37:04 +0000 (11:37 -0400)] 
Handle HTTP minor versions greater than 9

(In practice they don't exist, but so long as we're making changes for
standards compliance...)

Also add several more unit tests for good and bad URL types.

12 years agoTougher validation for parsing urls from HTTP headers. Fixes #2767.
Kevin Butler [Tue, 3 Sep 2013 00:14:43 +0000 (01:14 +0100)] 
Tougher validation for parsing urls from HTTP headers. Fixes #2767.

12 years agoUpdated openssl configuration advice for Debian
Kevin Butler [Mon, 2 Sep 2013 18:54:50 +0000 (19:54 +0100)] 
Updated openssl configuration advice for Debian

12 years agoChanged signature for check_nickname_list to remove warnings on free.
Kevin Butler [Sat, 31 Aug 2013 04:12:36 +0000 (05:12 +0100)] 
Changed signature for check_nickname_list to remove warnings on free.

12 years agoMyFamily option will now fix fingerprints missing their leading instead of complaini...
Kevin Butler [Sat, 31 Aug 2013 03:49:04 +0000 (04:49 +0100)] 
MyFamily option will now fix fingerprints missing their leading  instead of complaining. Should fix #4341.

12 years agoCleanup whitespaces
Nick Mathewson [Sun, 25 Aug 2013 16:22:20 +0000 (12:22 -0400)] 
Cleanup whitespaces

12 years agoMerge branch 'bug5609_rebased'
Nick Mathewson [Sun, 25 Aug 2013 15:32:55 +0000 (11:32 -0400)] 
Merge branch 'bug5609_rebased'

12 years agoBasic unit test for EVENT_TRANSPORT_LAUNCHED
Nick Mathewson [Sun, 25 Aug 2013 15:29:03 +0000 (11:29 -0400)] 
Basic unit test for EVENT_TRANSPORT_LAUNCHED

12 years agoWiden event_mask_t to 64 bits
Nick Mathewson [Sun, 25 Aug 2013 14:38:20 +0000 (10:38 -0400)] 
Widen event_mask_t to 64 bits

12 years agoAdd a changes file for #5609.
George Kadianakis [Sat, 26 Jan 2013 11:25:09 +0000 (13:25 +0200)] 
Add a changes file for #5609.

12 years agoImplement the TRANSPORT_LAUNCHED control port event.
George Kadianakis [Wed, 23 Jan 2013 10:41:19 +0000 (12:41 +0200)] 
Implement the TRANSPORT_LAUNCHED control port event.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sun, 25 Aug 2013 04:34:23 +0000 (00:34 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:33:10 +0000 (00:33 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

(Using "ours" strategy to avoid taking 9546 fix in 0.2.3; we just
merged our own into 0.2.4)

12 years agoMerge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3
Nick Mathewson [Sun, 25 Aug 2013 04:32:27 +0000 (00:32 -0400)] 
Merge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3

12 years agoMerge remote-tracking branch 'public/bug9546_v2' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:31:51 +0000 (00:31 -0400)] 
Merge remote-tracking branch 'public/bug9546_v2' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9366' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:49 +0000 (00:29 -0400)] 
Merge remote-tracking branch 'public/bug9366' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9543' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:06 +0000 (00:29 -0400)] 
Merge remote-tracking branch 'public/bug9543' into maint-0.2.4

12 years agofix typos
Roger Dingledine [Sat, 24 Aug 2013 01:43:57 +0000 (21:43 -0400)] 
fix typos

12 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Fri, 23 Aug 2013 00:47:23 +0000 (20:47 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 23 Aug 2013 00:47:10 +0000 (20:47 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9564' into maint-0.2.3
Nick Mathewson [Fri, 23 Aug 2013 00:46:40 +0000 (20:46 -0400)] 
Merge remote-tracking branch 'public/bug9564' into maint-0.2.3

12 years agoMerge branch 'bug6153_squashed'
Nick Mathewson [Thu, 22 Aug 2013 14:16:07 +0000 (10:16 -0400)] 
Merge branch 'bug6153_squashed'

12 years agoHide the contents of the circuit_build_times structure.
Nick Mathewson [Wed, 21 Aug 2013 16:37:35 +0000 (12:37 -0400)] 
Hide the contents of the circuit_build_times structure.

There were only two functions outside of circuitstats that actually
wanted to know what was inside this.  Making the structure itself
hidden should help isolation and prevent us from spaghettifying the
thing more.

12 years agoDocumentation for new cbt accessors
Nick Mathewson [Wed, 21 Aug 2013 16:17:20 +0000 (12:17 -0400)] 
Documentation for new cbt accessors

12 years agochanges file for 6153
Nick Mathewson [Wed, 21 Aug 2013 16:12:21 +0000 (12:12 -0400)] 
changes file for 6153

12 years agoSeparate mutable/const accessors for circuit_build_times
Nick Mathewson [Wed, 21 Aug 2013 16:10:05 +0000 (12:10 -0400)] 
Separate mutable/const accessors for circuit_build_times

(These have proved invaluable for other global accessors.)

12 years agoRename get_circuit_nbuild_* to end with _ms
Nick Mathewson [Wed, 21 Aug 2013 15:59:19 +0000 (11:59 -0400)] 
Rename get_circuit_nbuild_* to end with _ms

12 years agoMake circ_times static and add accessor functions.
vagrant [Wed, 21 Aug 2013 15:44:28 +0000 (11:44 -0400)] 
Make circ_times static and add accessor functions.

Change the global circ_times to a static variable and use
accessor functions throughout the code, instead of
accessing it directly.

12 years agoReplace return with continue in update_consensus_networkstatus_downloads
Nick Mathewson [Thu, 22 Aug 2013 14:00:37 +0000 (10:00 -0400)] 
Replace return with continue in update_consensus_networkstatus_downloads

Fix for bug 9564; bugfix on 0.2.3.14-alpha.

12 years agoMerge branch 'ticket5526'
Nick Mathewson [Wed, 21 Aug 2013 17:42:39 +0000 (13:42 -0400)] 
Merge branch 'ticket5526'

12 years agoTweak/cleanup 5526 fix.
Nick Mathewson [Wed, 21 Aug 2013 17:41:15 +0000 (13:41 -0400)] 
Tweak/cleanup 5526 fix.

12 years agoPrint accounting information in heartbeat messages.
Peter Retzlaff [Wed, 12 Jun 2013 08:51:39 +0000 (10:51 +0200)] 
Print accounting information in heartbeat messages.

Implements ticket 5526.

12 years agoAdd a 30-day maximum on user-supplied MaxCircuitDirtiness
Nick Mathewson [Wed, 21 Aug 2013 15:35:00 +0000 (11:35 -0400)] 
Add a 30-day maximum on user-supplied MaxCircuitDirtiness

Fix for bug 9543.

12 years agoMake bridges send AUTH_CHALLENGE cells
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)] 
Make bridges send AUTH_CHALLENGE cells

The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.

Fixes bug 9546; bugfix on 0.2.3.6-alpha.

12 years agoMake bridges send AUTH_CHALLENGE cells
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)] 
Make bridges send AUTH_CHALLENGE cells

The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.

Fixes bug 9546; bugfix on 0.2.3.6-alpha.

12 years agoSend NETINFO on receiving a NETINFO if we have not yet sent one.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)] 
Send NETINFO on receiving a NETINFO if we have not yet sent one.

(Backport to Tor 0.2.3)

Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
connection, would never send AUTH_CHALLENGE.  So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.

Fixes bug 9546.

12 years agoSend NETINFO on receiving a NETINFO if we have not yet sent one.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)] 
Send NETINFO on receiving a NETINFO if we have not yet sent one.

Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
connection, would never send AUTH_CHALLENGE.  So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.

Fixes bug 9546.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sat, 17 Aug 2013 02:00:14 +0000 (22:00 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4'

12 years agoDocument the correct loglevel for the heartbeat message
Nick Mathewson [Sat, 17 Aug 2013 01:58:50 +0000 (21:58 -0400)] 
Document the correct loglevel for the heartbeat message

12 years agoAdd a changes file for 9108.
Nick Mathewson [Thu, 15 Aug 2013 19:51:56 +0000 (15:51 -0400)] 
Add a changes file for 9108.

12 years agoRename circuit_get_global_list to remove trailing _
Nick Mathewson [Thu, 15 Aug 2013 19:37:23 +0000 (15:37 -0400)] 
Rename circuit_get_global_list to remove trailing _

12 years agoMerge remote-tracking branch 'majek/bug9108'
Nick Mathewson [Thu, 15 Aug 2013 19:36:04 +0000 (15:36 -0400)] 
Merge remote-tracking branch 'majek/bug9108'

Conflicts:
src/or/circuitlist.h

12 years agoAdd changes file for #4773.
George Kadianakis [Thu, 15 Aug 2013 16:15:34 +0000 (19:15 +0300)] 
Add changes file for #4773.

12 years agoFix a wide line in test_geoip_with_pt
Nick Mathewson [Thu, 15 Aug 2013 16:10:10 +0000 (12:10 -0400)] 
Fix a wide line in test_geoip_with_pt

12 years agoMerge branch 'bug5040_4773_rebase_3'
Nick Mathewson [Thu, 15 Aug 2013 16:04:56 +0000 (12:04 -0400)] 
Merge branch 'bug5040_4773_rebase_3'

12 years agoTest ExtORPort cookie initialization when file writing is broken.
George Kadianakis [Wed, 14 Aug 2013 15:00:08 +0000 (18:00 +0300)] 
Test ExtORPort cookie initialization when file writing is broken.

12 years agoTest some fail conditions of ext_orport.c USERADDR/TRANSPORT parsing.
George Kadianakis [Wed, 14 Aug 2013 14:18:50 +0000 (17:18 +0300)] 
Test some fail conditions of ext_orport.c USERADDR/TRANSPORT parsing.

12 years agoFix some #5040 bugs found by Nick's tests.
George Kadianakis [Mon, 5 Aug 2013 16:08:14 +0000 (19:08 +0300)] 
Fix some #5040 bugs found by Nick's tests.

- Set conn->address when we receive a USERADDR command.
- Set conn->state to a sane value when we transition from Extended
  ORPort to ORPort.

12 years agoWrite some free_all functions to free the auth. cookies.
George Kadianakis [Wed, 14 Aug 2013 14:16:06 +0000 (17:16 +0300)] 
Write some free_all functions to free the auth. cookies.

We started allocating space for them on the heap in the previous
commit.

Conflicts:
src/or/ext_orport.h

12 years agoImplement and use a generic auth. cookie initialization function.
George Kadianakis [Tue, 4 Jun 2013 17:00:28 +0000 (20:00 +0300)] 
Implement and use a generic auth. cookie initialization function.

Use the generic function for both the ControlPort cookie and the
ExtORPort cookie.

Also, place the global cookie variables in the heap so that we can
pass them around more easily as pointers.

Also also, fix the unit tests that broke by this change.

Conflicts:
src/or/config.h
src/or/ext_orport.c

12 years agoWarn if the Extended ORPort listens on a public IP address.
George Kadianakis [Sat, 1 Jun 2013 15:38:06 +0000 (18:38 +0300)] 
Warn if the Extended ORPort listens on a public IP address.

12 years agoBetter documentation for ext_or_auth_correct_client_hash.
George Kadianakis [Wed, 14 Aug 2013 14:00:56 +0000 (17:00 +0300)] 
Better documentation for ext_or_auth_correct_client_hash.

12 years agoWhite-box tests for the succeeding case of ext_or_port handshake.
Nick Mathewson [Thu, 1 Aug 2013 21:29:10 +0000 (17:29 -0400)] 
White-box tests for the succeeding case of ext_or_port handshake.

(Okay, white-box plus mocking enough other functions so they don't
crash.)

12 years agoTest for initializing ext_or_auth_cookie file
Nick Mathewson [Thu, 1 Aug 2013 20:24:20 +0000 (16:24 -0400)] 
Test for initializing ext_or_auth_cookie file

12 years agoMake 0x01==SAFECOOKIE a macro, not a magic number
Nick Mathewson [Thu, 1 Aug 2013 17:21:52 +0000 (13:21 -0400)] 
Make 0x01==SAFECOOKIE a macro, not a magic number

12 years agoUnit test for the ext_orport safe_cookie handshake
Nick Mathewson [Thu, 1 Aug 2013 17:19:07 +0000 (13:19 -0400)] 
Unit test for the ext_orport safe_cookie handshake

12 years agoExpose/mock some functions to make ext_orport.c testing possible
Nick Mathewson [Thu, 1 Aug 2013 17:15:58 +0000 (13:15 -0400)] 
Expose/mock some functions to make ext_orport.c testing possible

12 years agoMore unit tests for handle_client_auth_nonce
Nick Mathewson [Thu, 1 Aug 2013 16:13:09 +0000 (12:13 -0400)] 
More unit tests for handle_client_auth_nonce

Incidentally, this business here where I make crypto_rand mockable:
this is exactly the kind of thing that would make me never want to
include test-support stuff in production builds.

12 years agoUnit test for basic ext_or_cookie authentication backend
Nick Mathewson [Thu, 1 Aug 2013 15:44:52 +0000 (11:44 -0400)] 
Unit test for basic ext_or_cookie authentication backend

12 years agoSplit the cryptographic part of handle_client_auth_nonce into new fn
Nick Mathewson [Wed, 31 Jul 2013 16:31:26 +0000 (12:31 -0400)] 
Split the cryptographic part of handle_client_auth_nonce into new fn

12 years agoFix some ext_orport.c DOCDOCs.
George Kadianakis [Thu, 18 Jul 2013 16:58:42 +0000 (19:58 +0300)] 
Fix some ext_orport.c DOCDOCs.

12 years agoTests for connection_write_ext_or_command.
Nick Mathewson [Thu, 18 Jul 2013 20:23:48 +0000 (16:23 -0400)] 
Tests for connection_write_ext_or_command.

12 years agoUnit tests for ext_or_id_map.
Nick Mathewson [Thu, 18 Jul 2013 19:51:29 +0000 (15:51 -0400)] 
Unit tests for ext_or_id_map.

12 years agoUnit tests for fetch_ext_or_cmd
Nick Mathewson [Wed, 17 Jul 2013 21:51:21 +0000 (17:51 -0400)] 
Unit tests for fetch_ext_or_cmd

12 years agoSplit out buffers and socks tests into separate modules.
Nick Mathewson [Wed, 17 Jul 2013 21:31:27 +0000 (17:31 -0400)] 
Split out buffers and socks tests into separate modules.

No other changes were made here.  Keeping everything in
src/test/test.c was a legacy of back when we had all our unit tests in
one big file.

Doing this now because I'm adding an ext_or_command test.

12 years agoAdd a clientmap_entry_free().
Nick Mathewson [Tue, 16 Jul 2013 18:04:36 +0000 (14:04 -0400)] 
Add a clientmap_entry_free().

Remove a nedless strdup/free pair.

12 years agoFix hash functions for transport_name in client entry
Nick Mathewson [Tue, 16 Jul 2013 17:59:31 +0000 (13:59 -0400)] 
Fix hash functions for transport_name in client entry

12 years agoUse memdup_nulterm and check for NULs in handle_cmd_transport
Nick Mathewson [Tue, 16 Jul 2013 17:59:09 +0000 (13:59 -0400)] 
Use memdup_nulterm and check for NULs in handle_cmd_transport

12 years agoFix a variety of issues in 4773
Nick Mathewson [Tue, 16 Jul 2013 17:54:10 +0000 (13:54 -0400)] 
Fix a variety of issues in 4773

memwipe some stack-allocated stuff
Add DOCDOC comments for state machines
Use memdup_nulterm as appropriate
Check for NULs in useraddr
Add a macro so that <= AUTH_MAX has a meaning.