aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Fix names of functions that convert strings to addrsNick Mathewson2011-10-11
| | | | | | | | | | | | | | | | | | | | Now let's have "lookup" indicate that there can be a hostname resolution, and "parse" indicate that there wasn't. Previously, we had one "lookup" function that did resolution; four "parse" functions, half of which did resolution; and a "from_str()" function that didn't do resolution. That's confusing and error-prone! The code changes in this commit are exactly the result of this perl script, run under "perl -p -i.bak" : s/tor_addr_port_parse/tor_addr_port_lookup/g; s/parse_addr_port(?=[^_])/addr_port_lookup/g; s/tor_addr_from_str/tor_addr_parse/g; This patch leaves aton and pton alone: their naming convention and behavior is is determined by the sockets API. More renaming may be needed.
* Fix a bunch of whitespace errorsNick Mathewson2011-10-11
|
* 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.
* Fix some more issues wrt tor_cert_new found by asnNick Mathewson2011-10-10
|
* 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
|
* Generate certificates that enable v3 handshakeNick 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
|
* Remove a no-longer-relevant commentNick 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
* Function to return peer cert as tor_tls_certNick Mathewson2011-10-10
|
* Add AUTH keys as specified in proposal 176Nick Mathewson2011-10-10
| | | | | | | | | | | | | | | | Our keys and x.509 certs are proliferating here. Previously we had: An ID cert (using the main ID key), self-signed A link cert (using a shorter-term link key), signed by the ID key Once proposal 176 and 179 are done, we will also have: Optionally, a presentation cert (using the link key), signed by whomever. An authentication cert (using a shorter-term ID key), signed by the ID key. These new keys are managed as part of the tls context infrastructure, since you want to rotate them under exactly the same circumstances, and since they need X509 certificates.
* Functions to get a public RSA key from a certNick Mathewson2011-10-10
|
* Function to detect certificate types that signal v3 certificatesNick Mathewson2011-10-10
|
* Function to get digests of the certs and their keysNick Mathewson2011-10-10
|
* More functions to manipulate certs received in cellsNick Mathewson2011-10-10
|
* Function to extract the TLSSECRETS field for v3 handshakesNick Mathewson2011-10-10
|
* 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.
* Add a sha256 hmac function, with testsNick Mathewson2011-10-10
|
* Turn X509 certificates into a first-class type and add some functionsNick Mathewson2011-10-10
|
* New function to get all digests of a public keyNick Mathewson2011-10-10
|
* 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.
* | | Merge remote-tracking branch 'sebastian/osxcompile'Nick Mathewson2011-10-10
|\ \ \
| * | | Fix a compile warning on OS X 10.6 and upSebastian Hahn2011-10-11
| | | |
* | | | 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!
* | | Add a missing comma in tor_check_port_forwardingNick Mathewson2011-10-10
| | | | | | | | | | | | My fault; fix for bug 4213.
* | | 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!