Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-09-06 | Split tor_parse_{some_int} testing into separate fn. Code movement only. | Nick Mathewson | |
2016-09-06 | Merge remote-tracking branch 'teor/bug20012' | Nick Mathewson | |
2016-09-06 | Merge remote-tracking branch 'teor/feature20069' | Nick Mathewson | |
2016-09-06 | Merge remote-tracking branch 'public/ticket20002' | Nick Mathewson | |
2016-09-06 | checkSpace.pl now forbids more identifiers. | Nick Mathewson | |
The functions it warns about are: assert, memcmp, strcat, strcpy, sprintf, malloc, free, realloc, strdup, strndup, calloc. Also, fix a few lingering instances of these in the code. Use other conventions to indicate _intended_ use of assert and malloc/realloc/etc. | |||
2016-09-06 | Merge remote-tracking branch 'sebastian/bug20065' | Nick Mathewson | |
2016-09-06 | Fix an indentation issue in rend_config_services | teor | |
2016-09-06 | Fix a comment typo in smartlist_get_most_frequent_() | teor (Tim Wilson-Brown) | |
2016-09-06 | Add hs-ipv6 to the chutney IPv6 tests | teor | |
Requires a recent version of chutney. Also remove bridges+hs, as it's somewhat redundant. | |||
2016-09-06 | Give useful error if authority_signing_key doesn't exist | Sebastian Hahn | |
2016-09-05 | Appease make check-spaces | Andrea Shepard | |
2016-09-05 | Fix BUG warning with stack trace from config/parse_port_config__listenaddress | Nick Mathewson | |
2016-09-01 | Fix memory leaks in the shared random tests. | Nick Mathewson | |
Please remember to test your code with --enable-expensive-hardening. :) | |||
2016-08-31 | Actually, always monotime_init() in the unit tests. | Nick Mathewson | |
2016-08-31 | Initialize monotonic timer code before using it in the tests | Nick Mathewson | |
2016-08-31 | It is not a bug to attempt to base32_decode a non-base32 string | Nick Mathewson | |
(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.) | |||
2016-08-31 | Detect and suppress bug message from zlib compression bomb test | Nick Mathewson | |
2016-08-31 | Require specific messages for remaining link-handshake failure cases | Nick Mathewson | |
2016-08-31 | Always log [bug] warnings from the unit tests. | Nick Mathewson | |
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. | |||
2016-08-31 | Do not call tor_tls_server_info_callback(NULL) from tests. | Nick Mathewson | |
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. | |||
2016-08-31 | Work even harder not to suppress logging messages unless we mean to. | Nick Mathewson | |
2016-08-31 | Document and clean log_test_helpers.c a bit | Nick Mathewson | |
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. | |||
2016-08-31 | Use setup_full_capture_of_logs() where appropriate. | Nick Mathewson | |
2016-08-31 | setup_capture_of_logs: no longer suppress log messages | Nick Mathewson | |
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. | |||
2016-08-31 | Improvements to test_link_handshake: check specific error messages | Nick Mathewson | |
Otherwise it's too easy to lose our test coverage. | |||
2016-08-31 | Fix all "BUG" warnings created from link-handshake tests. | Nick Mathewson | |
2016-08-31 | Another log testing helper helper, for matching partial strings. | Nick Mathewson | |
2016-08-31 | Don't warn on unlink(bw_accounting) when errno == ENOENT | Nick Mathewson | |
Patch from pastly; fixes bug 19964. | |||
2016-08-31 | Fix a deref-before-null-check complaint | Nick Mathewson | |
Found by coverity scan; this is CID 1372329. Also, reindent some oddly indented code. | |||
2016-08-31 | Stop inadvertently upgrading client intro connections to ntor | teor | |
Also stop logging the intro point details on error by default. Fixes #20012, introduced with ntor in tor 0.2.4.8-alpha. | |||
2016-08-29 | We no longer need to tag UseNTorHandshake as deprecated, since it is obsolete | Nick Mathewson | |
2016-08-29 | Merge remote-tracking branch 'teor/reject-tap-v6' | Nick Mathewson | |
2016-08-26 | test: Fix shared random unit test for big endian | David Goulet | |
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> | |||
2016-08-26 | prop272: When voting, include no non-Valid relays in consensus | Nick Mathewson | |
Implements ticket 20002, and part of proposal 272. | |||
2016-08-26 | Avoid asserts in oos/kill_conn_list unit test | Andrea Shepard | |
2016-08-26 | Fix OOS comparator fix | Andrea Shepard | |
2016-08-25 | Fix duplicated if condition in connection.c | David Goulet | |
Furthermore, fix a test that could returned an uninitialized value. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2016-08-25 | Merge remote-tracking branch 'andrea/ticket18640_v3' | Nick Mathewson | |
2016-08-24 | bump to 0.2.9.2-alpha-dev | Nick Mathewson | |
2016-08-24 | make check-spaces fixes | Nick Mathewson | |
2016-08-24 | Bump to 0.2.9.2-alpha | Nick Mathewson | |
2016-08-24 | Merge branch 'maint-0.2.8' | Nick Mathewson | |
2016-08-24 | Fix path selection on firewalled clients | teor | |
Signed-off-by: teor <teor2345@gmail.com> | |||
2016-08-24 | Merge branch 'maint-0.2.8' | Nick Mathewson | |
2016-08-24 | Merge branch 'maint-0.2.7' into maint-0.2.8 | Nick Mathewson | |
2016-08-24 | Replace Tonga with Bifroest. | Isis Lovecruft | |
* FIXES #19728: https://bugs.torproject.org/19728 * CLOSES #19690: https://bugs.torproject.org/19690 | |||
2016-08-24 | Add a stub for rend_service_allow_direct_connection | teor | |
It always returns 0. It should be replaced with the Single Onion version from #17178 when both are merged. | |||
2016-08-24 | Client & HS ignore UseNTorHandshake, all non-HS handshakes use ntor | teor (Tim Wilson-Brown) | |
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. | |||
2016-08-24 | 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 ntor | teor (Tim Wilson-Brown) | |
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. |