aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* Tell the bridge operator on what ports his transports spawned.George Kadianakis2011-11-02
| | | | | | - Add a LOG_WARN message when registering the transports of a server managed proxy, so that the bridge operator can see in what ports the transports spawned and notify his/her clients.
* Rename tor_process_destroy() to tor_process_handle_destroy().George Kadianakis2011-10-24
|
* Improve general code quality.George Kadianakis2011-10-24
| | | | | | | | - Add a tor_process_get_pid() function that returns the PID of a process_handle_t. - Conform to make check-spaces. - Add some more documentation. - Improve some log messages.
* Add PT_PROTO_FAILED_LAUNCH managed proxy state.George Kadianakis2011-10-24
| | | | | | We used to try to terminate the managed proxy process even if it failed while launching. We introduce a new managed proxy state, to represent a *broken* and *not launched* proxy.
* Make set_managed_proxy_environment() work on Windows.George Kadianakis2011-10-24
|
* Port managed proxy launching code to the new subprocess API.George Kadianakis2011-10-17
|
* Add some points to make it easy to turn off v3 supportNick Mathewson2011-10-10
|
* Quiet two notices, and spelling mistake cleanupSebastian Hahn2011-10-10
|
* Fix a few 64bit compiler warningsSebastian Hahn2011-10-10
|
* Add more log statements for protocol/internal failuresNick Mathewson2011-10-10
|
* Remove auth_challenge field from or_handshake_state_tNick Mathewson2011-10-10
| | | | | | We didn't need to record this value; it was already recorded implicitly while computing cell digests for later examination in the authenticate cells.
* spec conformance: allow only one cert of each typeNick Mathewson2011-10-10
|
* Give tor_cert_get_id_digests() fail-fast behaviorNick Mathewson2011-10-10
| | | | | | | | | | | | Right now we can take the digests only of an RSA key, and only expect to take the digests of an RSA key. The old tor_cert_get_id_digests() would return a good set of digests for an RSA key, and an all-zero one for a non-RSA key. This behavior is too error-prone: it carries the risk that we will someday check two non-RSA keys for equality and conclude that they must be equal because they both have the same (zero) "digest". Instead, let's have tor_cert_get_id_digests() return NULL for keys we can't handle, and make its callers explicitly test for NULL.
* Make more safe_str usage happen for new logs in command.cNick Mathewson2011-10-10
|
* Set up network parameters on non-authenticated incoming connectionsNick Mathewson2011-10-10
| | | | | | Also add some info log messages for the steps of the v3 handshake. Now my test network bootstraps!
* Make sure we stop putting cells into our hash at the right time.Nick Mathewson2011-10-10
|
* Bugfixes for authenticate handling and generationNick Mathewson2011-10-10
|
* Fix log message about what cells we are sendingNick Mathewson2011-10-10
|
* more verbose log for recording an odd cellNick Mathewson2011-10-10
|
* Actually accept cells in SERVER_RENEGOTIATINGNick Mathewson2011-10-10
|
* Allow "finished flushing" during v3 handshakeNick Mathewson2011-10-10
|
* Hook up all of the prop176 code; allow v3 negotiations to actually workNick Mathewson2011-10-10
|
* Make tor_tls_cert_is_valid check key lengthsNick Mathewson2011-10-10
|
* New functions to record digests of cells during v3 handshakeNick Mathewson2011-10-10
| | | | Also, free all of the new fields in or_handshake_state_t
* Implement cert/auth cell readingNick Mathewson2011-10-10
|
* Basic function to write authenticate cellsNick Mathewson2011-10-10
| | | | Also, tweak the cert cell code to send auth certs
* Functions to send cert and auth_challenge cells.Nick Mathewson2011-10-10
|
* Cell types and states for new OR handshakeNick Mathewson2011-10-10
| | | | | | Also, define all commands > 128 as variable-length when using v3 or later link protocol. Running into a var cell with an unrecognized type is no longer a bug.
* Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-10-10
|\
| * Update documentation comment for rend_client_reextend_intro_circuitRobert Ransom2011-10-10
| | | | | | | | | | | | | | | | | | One of its callers assumes a non-zero result indicates a permanent failure (i.e. the current attempt to connect to this HS either has failed or is doomed). The other caller only requires that this function's result never equal -2. Bug reported by Sebastian Hahn.
| * Don't launch a useless circuit in rend_client_reextend_intro_circuitRobert Ransom2011-10-10
| | | | | | | | Fixes bug 4212. Bug reported by katmagic and found by Sebastian.
| * Merge remote-tracking branch 'karsten/feature3951' into maint-0.2.2Nick Mathewson2011-10-07
| |\
| | * Turn on directory request statistics by default.Karsten Loesing2011-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the default values for collecting directory request statistics and inlcuding them in extra-info descriptors to 1. Don't break if we are configured to collect directory request or entry statistics and don't have a GeoIP database. Instead, print out a notice and skip initializing the affected statistics code. This is the cherry-picked 499661524b0a572303087af721325608dd91f7ce.
* | | Consider hibernation before dropping privsSebastian Hahn2011-10-11
| | | | | | | | | | | | | | | | | | | | | | | | Without this patch, Tor wasn't sure whether it would be hibernating or not, so it postponed opening listeners until after the privs had been dropped. This doesn't work so well for low ports. Bug was introduced in the fix for bug 2003. Fixes bug 4217, reported by Zax and katmagic. Thanks!
* | | Merge remote-tracking branch 'public/bug2003_nm'Nick Mathewson2011-10-07
|\ \ \
| * | | Make the unit tests pass again after the bug2003 fixNick Mathewson2011-09-07
| | | |
| * | | Don't update AccountingSoftLimitHitAt on startupSebastian Hahn2011-09-01
| | | | | | | | | | | | | | | | | | | | | | | | Add a "default" state which we use until we've decided whether we're live or hibernating. This allows us to properly track whether we're resuming a hibernation period or not. Fixes bug 2003.
* | | | reinstate a notice for the non-loopback socksport caseNick Mathewson2011-10-07
| | | | | | | | | | | | | | | | | | | | Thanks to prop171, it's no longer a crazy thing to do, but you should make sure that you really meant it!
* | | | Merge remote-tracking branch 'rransom-tor/bug4018'Nick Mathewson2011-10-07
|\ \ \ \
| * | | | Fix a bogus warningRobert Ransom2011-09-14
| | | | |
* | | | | Merge remote-tracking branch 'asn2/bug3656'Nick Mathewson2011-10-07
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/util.c src/common/util.h src/or/config.h src/or/main.c src/test/test_util.c
| * | | | | Make it compile on Windows™.George Kadianakis2011-10-07
| | | | | |
| * | | | | Support multiple transports in a single transport line.George Kadianakis2011-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support multiple comma-separated transpotrs in a single {Client,Server}TransportPlugin line.
| * | | | | Improve wording in some comments and log messages.George Kadianakis2011-09-23
| | | | | |
| * | | | | Put some sense into our logging.George Kadianakis2011-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Transform our logging severities to something more sensible. Remove sneaky printf()s.
| * | | | | Don't warn of stray Bridges if managed proxies are still unconfigured.George Kadianakis2011-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With managed proxies you would always get the error message: "You have a Bridge line using the X pluggable transport, but there doesn't seem to be a corresponding ClientTransportPlugin line." because the check happened directly after parse_client_transport_line() when managed proxies were not fully configured and their transports were not registered. The fix is to move the validation to run_scheduled_events() and make sure that all managed proxies are configured first.
| * | | | | Constification.George Kadianakis2011-09-11
| | | | | |
| * | | | | Make check-spaces happy.George Kadianakis2011-09-11
| | | | | |
| * | | | | Enforce transport names being C identifiers.George Kadianakis2011-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce string_is_C_identifier() and use it to enforce transport names according to the 180 spec.
| * | | | | Trivial fixes around the code.George Kadianakis2011-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * C90-fy. * Remove ASN comments. * Don't smartlist_clear() before smartlist_free(). * Plug a mem. leak.