aboutsummaryrefslogtreecommitdiff
path: root/src/or/ext_orport.c
Commit message (Collapse)AuthorAge
* scan-build: sizeof(ptr*) in a debugging log in ext_orport.cNick Mathewson2014-04-19
| | | | | | Instead of taking the length of a buffer, we were taking the length of a pointer, so that our debugging log would cover only the first sizeof(void*) bytes of the client nonce.
* 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.
* Write some free_all functions to free the auth. cookies.George Kadianakis2013-08-15
| | | | | | | | We started allocating space for them on the heap in the previous commit. Conflicts: src/or/ext_orport.h
* 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
* Make 0x01==SAFECOOKIE a macro, not a magic numberNick Mathewson2013-08-15
|
* Unit test for basic ext_or_cookie authentication backendNick Mathewson2013-08-15
|
* Split the cryptographic part of handle_client_auth_nonce into new fnNick Mathewson2013-08-15
|
* Fix some ext_orport.c DOCDOCs.George Kadianakis2013-08-15
|
* Tests for connection_write_ext_or_command.Nick Mathewson2013-08-15
|
* Use memdup_nulterm and check for NULs in handle_cmd_transportNick Mathewson2013-08-15
|
* Fix a variety of issues in 4773Nick Mathewson2013-08-15
| | | | | | | | 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.
* Break up <??> differently, and explain whyNick Mathewson2013-08-15
|
* Add guards to ext_orport.h, rename get_file to get_file_nameNick Mathewson2013-08-15
|
* Fix a number of issues with the #5040 code.George Kadianakis2013-08-15
| | | | | | | | | | | | | | | | | | - 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)
* Make check-spaces happy.George Kadianakis2013-08-15
|
* Make the Extended ORPort understand the TRANSPORT command.George Kadianakis2013-07-18
|
* Fix logging severities and remove some trivial XXXs.George Kadianakis2013-07-18
|
* More Extended ORPort code improvements.George Kadianakis2013-07-18
| | | | | * Change name of init_ext_or_auth_cookie_authentication(). * Add a small comment.
* Move Extended ORPort code to its own module.George Kadianakis2013-07-18
Move the code from the connection_or module to ext_orport. This commit only moves code: it shouldn't modify anything.