aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-15Add changes file for #4773.George Kadianakis
2013-08-15Fix a wide line in test_geoip_with_ptNick Mathewson
2013-08-15Merge branch 'bug5040_4773_rebase_3'Nick Mathewson
2013-08-15Test ExtORPort cookie initialization when file writing is broken.George Kadianakis
2013-08-15Test some fail conditions of ext_orport.c USERADDR/TRANSPORT parsing.George Kadianakis
2013-08-15Fix some #5040 bugs found by Nick's tests.George Kadianakis
- Set conn->address when we receive a USERADDR command. - Set conn->state to a sane value when we transition from Extended ORPort to ORPort.
2013-08-15Write some free_all functions to free the auth. cookies.George Kadianakis
We started allocating space for them on the heap in the previous commit. Conflicts: src/or/ext_orport.h
2013-08-15Implement and use a generic auth. cookie initialization function.George Kadianakis
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
2013-08-15Warn if the Extended ORPort listens on a public IP address.George Kadianakis
2013-08-15Better documentation for ext_or_auth_correct_client_hash.George Kadianakis
2013-08-15White-box tests for the succeeding case of ext_or_port handshake.Nick Mathewson
(Okay, white-box plus mocking enough other functions so they don't crash.)
2013-08-15Test for initializing ext_or_auth_cookie fileNick Mathewson
2013-08-15Make 0x01==SAFECOOKIE a macro, not a magic numberNick Mathewson
2013-08-15Unit test for the ext_orport safe_cookie handshakeNick Mathewson
2013-08-15Expose/mock some functions to make ext_orport.c testing possibleNick Mathewson
2013-08-15More unit tests for handle_client_auth_nonceNick Mathewson
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.
2013-08-15Unit test for basic ext_or_cookie authentication backendNick Mathewson
2013-08-15Split the cryptographic part of handle_client_auth_nonce into new fnNick Mathewson
2013-08-15Fix some ext_orport.c DOCDOCs.George Kadianakis
2013-08-15Tests for connection_write_ext_or_command.Nick Mathewson
2013-08-15Unit tests for ext_or_id_map.Nick Mathewson
2013-08-15Unit tests for fetch_ext_or_cmdNick Mathewson
2013-08-15Split out buffers and socks tests into separate modules.Nick Mathewson
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.
2013-08-15Add a clientmap_entry_free().Nick Mathewson
Remove a nedless strdup/free pair.
2013-08-15Fix hash functions for transport_name in client entryNick Mathewson
2013-08-15Use memdup_nulterm and check for NULs in handle_cmd_transportNick Mathewson
2013-08-15Fix a variety of issues in 4773Nick Mathewson
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.
2013-08-15Break up <??> differently, and explain whyNick Mathewson
2013-08-15Add guards to ext_orport.h, rename get_file to get_file_nameNick Mathewson
2013-08-15Use only uintptr_t for the value of transport_countNick Mathewson
2013-08-15If a single client connects with multiple transports, note all transports.George Kadianakis
2013-08-15Fix a number of issues with the #5040 code.George Kadianakis
- Don't leak if a transport proxy sends us a TRANSPORT command more than once. - Don't use smartlist_string_isin() in geoip_get_transport_history(). (pointed out by Nick) - Use the 'join' argument of smartlist_join_strings() instead of trying to write the separator on our own. (pointed out by Nick) - Document 'ext_or_transport' a bit better. (pointed out by Nick) - Be a bit more consistent with the types of the values of 'transport_counts'. (pointed out by Nick)
2013-08-15Trivially change unittests to make them more readable.George Kadianakis
Pluggable transport names are now in alphabetical order like they appear in the bridge-ip-transports string.
2013-08-15Make check-spaces happy.George Kadianakis
2013-08-15Add a changes file for #5040.George Kadianakis
2013-08-15Fix some unittests that broke when we added bridge-ip-transports.George Kadianakis
2013-08-15Add a unittest for the bridge-ip-transports extra-info line.George Kadianakis
2013-08-13Correction in the 0.2.4.16-rc changelogNick Mathewson
2013-08-12Merge remote-tracking branch 'karsten/geoip-manual-update-aug2013'Nick Mathewson
2013-08-12Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-08-12Merge remote-tracking branch 'asn/bug9363_take2'Nick Mathewson
2013-08-12Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson
2013-08-12Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson
2013-08-12Update to the August 2013 GeoIP database.Karsten Loesing
2013-08-12Add 2, update 1, and remove 3 manual A1 substitutions.Karsten Loesing
2013-08-10new location for tarballs; and you should edit Makefile tooRoger Dingledine
2013-08-10forward-port the 0.2.4.16-rc changelogRoger Dingledine
2013-08-10Merge branch 'maint-0.2.4'Roger Dingledine
2013-08-10Fix an uninitialized-read when parsing v3 introduction requests.Nick Mathewson
Fortunately, later checks mean that uninitialized data can't get sent to the network by this bug. Unfortunately, reading uninitialized heap *can* (in some cases, with some allocators) cause a crash if you get unlucky and go off the end of a page. Found by asn. Bugfix on 0.2.4.1-alpha.
2013-08-06Update coverage instructionsNick Mathewson