summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Changes file for ticket #19552ticket19552_squashedAndrea Shepard2016-09-05
|
* Add n-conns-downloading lines to download status GETINFO results at the ↵Andrea Shepard2016-09-05
| | | | control port when available
* Fix directory_find_dirconns_for_desc_digest() bugAndrea Shepard2016-09-05
|
* Unit test for get_bridge_desc_dirconns_by_id()Andrea Shepard2016-09-05
|
* Unit test for directory_find_dirconns_for_desc_digest()Andrea Shepard2016-09-05
|
* Unit test for auth_cert_dls_find_dirconns_by_auth_id() and ↵Andrea Shepard2016-09-05
| | | | auth_cert_dls_find_dirconns_by_auth_id_and_sk()
* Unit test for networkstatus_find_dirconns_downloading_flavor()Andrea Shepard2016-09-05
|
* Calls to find-dirconn functions when checking download status in control.c ↵Andrea Shepard2016-09-05
| | | | (logging only for now)
* Refactor directory_find_dirconns_for_desc_digest(), and implement ↵Andrea Shepard2016-09-05
| | | | auth_cert_dls_find_dirconns_by_auth_id(), auth_cert_dls_find_dirconns_by_auth_id_and_sk
* Implement directory_find_dirconns_for_desc_digest()Andrea Shepard2016-09-05
|
* Implement get_bridge_desc_dirconns_by_id()Andrea Shepard2016-09-05
|
* Add smartlist_uniq_pointers()Andrea Shepard2016-09-05
|
* Add digest match to directory_find_dirconns_by_resource()Andrea Shepard2016-09-05
|
* Implement networkstatus_find_dirconns_downloading_flavor()Andrea Shepard2016-09-05
|
* Implement directory_find_dirconns_by_resource()Andrea Shepard2016-09-05
|
* Appease make check-spacesAndrea Shepard2016-09-05
|
* Fix BUG warning with stack trace from config/parse_port_config__listenaddressNick Mathewson2016-09-05
|
* Bug 20038: Fix typo in ControlPort descriptionGeorg Koppen2016-09-05
|
* Fix memory leaks in the shared random tests.Nick Mathewson2016-09-01
| | | | | Please remember to test your code with --enable-expensive-hardening. :)
* Actually, always monotime_init() in the unit tests.Nick Mathewson2016-08-31
|
* Initialize monotonic timer code before using it in the testsNick Mathewson2016-08-31
|
* It is not a bug to attempt to base32_decode a non-base32 stringNick Mathewson2016-08-31
| | | | | (Rationale: it isn't a bug to try this for a base16 or base64 string. It's just a bad input that we're detecting.)
* Detect and suppress bug message from zlib compression bomb testNick Mathewson2016-08-31
|
* Require specific messages for remaining link-handshake failure casesNick Mathewson2016-08-31
|
* Merge branch 'log_test_improvements'Nick Mathewson2016-08-31
|\
| * Changes file for log test improvementsNick Mathewson2016-08-31
| |
| * Always log [bug] warnings from the unit tests.Nick Mathewson2016-08-31
| | | | | | | | | | | | | | We should consider them bugs. If they are happening intentionally, we should use the log_test_helpers code to capture and suppress them. But having them off-by-default has potential to cause programming errors.
| * Do not call tor_tls_server_info_callback(NULL) from tests.Nick Mathewson2016-08-31
| | | | | | | | | | | | | | This isn't valid behavior, and it causes a crash when you run the unit tests at --debug. I've added an IF_BUG_ONCE() check for this case.
| * Work even harder not to suppress logging messages unless we mean to.Nick Mathewson2016-08-31
| |
| * Document and clean log_test_helpers.c a bitNick Mathewson2016-08-31
| | | | | | | | | | | | In addition to documentation, this commit makes a function static, and removes a weird single-point-of-return-ism, and notes a thing I should fix.
| * Use setup_full_capture_of_logs() where appropriate.Nick Mathewson2016-08-31
| |
| * setup_capture_of_logs: no longer suppress log messagesNick Mathewson2016-08-31
|/ | | | | | | | | | | Previously setup_capture_of_logs would prevent log messages from going to the console entirely. That's a problem, since sometimes log messages are bugs! Now setup_capture_of_logs() acts sensibly. If you really do need to keep a message from going to the console entirely, there is setup_full_capture_of_logs(). But only use that if you're prepared to make sure that there are no extraneous messages generated at all.
* Improvements to test_link_handshake: check specific error messagesNick Mathewson2016-08-31
| | | | Otherwise it's too easy to lose our test coverage.
* Fix all "BUG" warnings created from link-handshake tests.Nick Mathewson2016-08-31
|
* Another log testing helper helper, for matching partial strings.Nick Mathewson2016-08-31
|
* Merge remote-tracking branch 'teor/bug19905'Nick Mathewson2016-08-31
|\
| * Fix the test network IPv6 check so it works on Linuxteor2016-08-31
| |
* | Don't warn on unlink(bw_accounting) when errno == ENOENTNick Mathewson2016-08-31
| | | | | | | | Patch from pastly; fixes bug 19964.
* | Fix a deref-before-null-check complaintNick Mathewson2016-08-31
|/ | | | | | Found by coverity scan; this is CID 1372329. Also, reindent some oddly indented code.
* We no longer need to tag UseNTorHandshake as deprecated, since it is obsoleteNick Mathewson2016-08-29
|
* Merge remote-tracking branch 'teor/reject-tap-v6'Nick Mathewson2016-08-29
|\
| * Add a stub for rend_service_allow_direct_connectionteor2016-08-24
| | | | | | | | | | It always returns 0. It should be replaced with the Single Onion version from #17178 when both are merged.
| * Client & HS ignore UseNTorHandshake, all non-HS handshakes use ntorteor (Tim Wilson-Brown)2016-08-24
| | | | | | | | | | | | | | | | Rely on onion_populate_cpath to check that we're only using TAP for the rare hidden service cases. Check and log if handshakes only support TAP when they should support ntor.
| * Improve comments in circuit_get_cpath_*teor (Tim Wilson-Brown)2016-08-24
| |
| * Client & HS make sure every hop in every non-HS path supports ntorteor (Tim Wilson-Brown)2016-08-24
| | | | | | | | | | | | | | When a client connects to an intro point not in the client's consensus, or a hidden service connects to a rend point not in the hidden service's consensus, we are stuck with using TAP, because there is no ntor link specifier.
| * Clients avoid choosing nodes that can't do ntorteor (Tim Wilson-Brown)2016-07-15
| | | | | | | | | | | | | | | | If we know a node's version, and it can't do ntor, consider it not running. If we have a node's descriptor, and it doesn't have a valid ntor key, consider it not running. Refactor these checks so they're consistent between authorities and clients.
| * Clients no longer download descriptors for relays without ntorteor (Tim Wilson-Brown)2016-07-15
| |
| * Relays make sure their own descriptor has an ntor keyteor (Tim Wilson-Brown)2016-07-15
| |
| * Authorities reject descriptors without ntor keysteor (Tim Wilson-Brown)2016-07-15
| | | | | | | | | | | | Before, they checked for version 0.2.4.18-rc or later, but this would not catch relays without version lines, or buggy or malicious relays missing an ntor key.
* | test: Fix shared random unit test for big endianDavid Goulet2016-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copying the integer 42 in a char buffer has a different representation depending on the endianess of the system thus that unit test was failing on big endian system. This commit introduces a python script, like the one we have for SRV, that computes a COMMIT/REVEAL from scratch so we can use it as a test vector for our encoding unit tests. With this, we use a random value of bytes instead of a number fixing the endianess issue and making the whole test case more solid with an external tool that builds the COMMIT and REVEAL according to the spec. Fixes #19977 Signed-off-by: David Goulet <dgoulet@torproject.org>