summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-01-13Merge remote-tracking branch 'dgoulet/bug21054_030_01'Nick Mathewson
2017-01-13fix wide linesNick Mathewson
2017-01-13Merge remote-tracking branch 'dgoulet/bug20992_030_01'Nick Mathewson
2017-01-13Merge branch 'bug21019_030_01_squashed'Nick Mathewson
2017-01-13hs: Log if service can't connect to applicationDavid Goulet
In order to help an HS operator knowing if the application configured behind it is not working properly, add a log at warning level for the connection refused or timeout case. This log will only be printed if a client connection fails and is rate limited. Closes #21019 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-11comment fix from pastlyNick Mathewson
2017-01-11repair whitespace.Nick Mathewson
2017-01-11Merge remote-tracking branch 'dgoulet/ticket19925_030_01'Nick Mathewson
2017-01-11Merge branch 'bug20569_030_02_squashed'Nick Mathewson
2017-01-11hs: Use AES-256 for v3 descriptorDavid Goulet
That key size is taken from proposal 224 thus specified in the protocol. Closes #20569 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-11Merge remote-tracking branch 'asn/bug20852_v1'Nick Mathewson
2017-01-11Merge remote-tracking branch 'public/bug20974'Nick Mathewson
2017-01-11Merge remote-tracking branch 'jryans/dependant-corrected'Nick Mathewson
2017-01-11Merge branch 'bug20987_squashed'Nick Mathewson
2017-01-11Fix memory leak when failing to configure hidden services.Nick Mathewson
In 8a0ea3ee43da0063c2546092662fa7ce4900bc2c we added a temp_service_list local variable to rend_config_services, but we didn't add a corresponding "free" for it to all of the exit paths. Fixes bug 20987; bugfix on 0.3.0.1-alpha.
2017-01-11Merge remote-tracking branch 'public/ticket21037'Nick Mathewson
2017-01-11Merge remote-tracking branch 'teor/bug21123'Nick Mathewson
2017-01-11Merge branch 'maint-0.2.9'Nick Mathewson
2017-01-11Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-01-11Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2017-01-11Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2017-01-11Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2017-01-11Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2017-01-10test: Add ESTABLISH_INTRO unit testsDavid Goulet
This commit adds 3 unit tests which validates a wrong signature length, a wrong authentication key length and a wrong MAC in the cell. Closes #20992 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-09control: Add GETINFO command for the shared random valuesDavid Goulet
Add the "sr/current" and "sr/previous" keys for the GETINFO command in order to get through the control port the shared random values from the consensus. Closes #19925 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-09Max HS descriptor size is now 50kb and also consensus param.George Kadianakis
2017-01-08comment fixupsChelsea H. Komlo
2017-01-04fixup! Fix unit test failures in response to DNS hijacking.Nick Mathewson
2017-01-04Update geoip and geoip6 to the January 4 2017 database.Karsten Loesing
2017-01-03Fix unit test failures in response to DNS hijacking.Nick Mathewson
Some DNS NXDOMAIN hijackers hijack truly ridiculous domains, like "invalid-stuff!!" or "1.2.3.4.5". This would provoke unit test failures where we used addresses like that to force tor_addr_lookup() to fail. The fix, for testing, is to mock tor_addr_lookup() with a variant that always fails when it gets a name with a !. Fixes bugs 20862 and 20863.
2017-01-03Make tor_addr_lookup() mockable.Nick Mathewson
2017-01-03Remove a rendundant check for PidFile changes at runtimeteor
This check is already performed regardless of whether the sandbox is active. Fixes bug 21123; bugfix on commit 2ae47d3 in 0.2.5.4-alpha.
2017-01-02Make ed25519_fmt() log 0-valued keys more nicely.Nick Mathewson
Because <unset> makes more sense than AAAAAAAAAAAAAAAAAAA... (I have indeed verified that ed25519_fmt() is only used for logging. This patch also clarifies the intention that ed25519_fmt() is only for logging. Closes ticket 21037.
2017-01-02Unindent long-misindented blocks.Nick Mathewson
We switched these to be "if (1) " a while back, so we could keep the indentation and avoid merge conflicts. But it's nice to clean up from time to time.
2017-01-02Fix some dubious indentationNick Mathewson
2017-01-02Make GETINFO entry-guards work again with prop271Nick Mathewson
This is not a great solution, but it's as close to backward-compatible as possible. A better GETINFO API should expose more information.
2017-01-02Move entry-guard-is-up notification later into dirguard path.Nick Mathewson
Previously we were marking directory guards up in ..._process_inbuf(), but that's wrong: we call that function on close as well as on success. Instead, we're marking the dirguard up only after we parse the HTTP headers. Closes 20974.
2016-12-29Use the correct spelling for "Dependent" in the control protocol.J. Ryan Stinnett
Fixes #18146.
2016-12-27Fix double-free on test failureNick Mathewson
Found by coverity scan; CID 1398167.
2016-12-23Merge remote-tracking branch 'dgoulet/bug20991_030_01'Nick Mathewson
2016-12-23Remove abort handler from the backtrace generatorcypherpunks
The abort handler masks the exit status of the backtrace generator by capturing the abort signal from the backtrace handler and exiting with zero. Because the output of the backtrace generator is meant to be piped to `bt_test.py`, its exit status is unimportant and is currently ignored. The abort handler calls `exit(3)` which is not asynchronous-signal-safe and calling it in this context is undefined behavior [0]. Closes ticket 21026. [0] https://www.securecoding.cert.org/confluence/x/34At
2016-12-23whitespace fixNick Mathewson
2016-12-23Merge remote-tracking branch 'dgoulet/bug20572_030_01'Nick Mathewson
2016-12-23Note memset as redundant; see 20764.Nick Mathewson
2016-12-23This is no longer inline.Nick Mathewson
2016-12-23Fix unreachable heap corruption in base64_decode()Hans Jerry Illikainen
Give size_mul_check() external linkage and use it in base64_decode() to avoid a potential integer wrap. Closes #19222
2016-12-23Merge remote-tracking branch 'dgoulet/bug19899_030_01'Nick Mathewson
2016-12-23Make outter (plaintext) layer of HS desc conform to prop224.George Kadianakis
This basically means changing the 'encrypted' field to 'superencrypted'.
2016-12-23Merge branch 'maint-0.2.9'Nick Mathewson
2016-12-21test: Add unit test for prune_services_on_reload()David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>