aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_extorport.c
Commit message (Collapse)AuthorAge
* Report only the first bootstrap failure from an orconnNick Mathewson2014-03-27
| | | | | | | Otherwise, when we report "identity mismatch", we then later report DONE when the connection gets closed. Fixes bug 10431; bugfix on 0.2.1.1-alpha.
* Throw control port warning if we failed to connect to all our bridges.George Kadianakis2014-03-10
|
* Test ExtORPort cookie initialization when file writing is broken.George Kadianakis2013-08-15
|
* Test some fail conditions of ext_orport.c USERADDR/TRANSPORT parsing.George Kadianakis2013-08-15
|
* Fix some #5040 bugs found by Nick's tests.George Kadianakis2013-08-15
| | | | | | - Set conn->address when we receive a USERADDR command. - Set conn->state to a sane value when we transition from Extended ORPort to ORPort.
* Implement and use a generic auth. cookie initialization function.George Kadianakis2013-08-15
| | | | | | | | | | | | | | 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
* White-box tests for the succeeding case of ext_or_port handshake.Nick Mathewson2013-08-15
| | | | | (Okay, white-box plus mocking enough other functions so they don't crash.)
* Test for initializing ext_or_auth_cookie fileNick Mathewson2013-08-15
|
* Unit test for the ext_orport safe_cookie handshakeNick Mathewson2013-08-15
|
* More unit tests for handle_client_auth_nonceNick Mathewson2013-08-15
| | | | | | 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.
* Unit test for basic ext_or_cookie authentication backendNick Mathewson2013-08-15
|
* Tests for connection_write_ext_or_command.Nick Mathewson2013-08-15
|
* Unit tests for ext_or_id_map.Nick Mathewson2013-08-15