summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-11-12Merge branch 'ticket13172'Nick Mathewson
2014-11-12Reenhappy make check-spacesNick Mathewson
2014-11-12Merge remote-tracking branch 'rl1987/bug13644'Nick Mathewson
2014-11-12Merge remote-tracking branch 'rl1987/bug9812'Nick Mathewson
2014-11-12Merge remote-tracking branch 'public/bug13698_024_v1'Nick Mathewson
2014-11-11Renaming ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN.rl1987
2014-11-11Comment possible values of was_router_added_t.rl1987
2014-11-10Fix: don't report timeout when closing parallel intro pointsDavid Goulet
When closing parallel introduction points, the given reason (timeout) was actually changed to "no reason" thus when the circuit purpose was CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT, we were reporting an introduction point failure and flagging it "unreachable". After three times, that intro point gets removed from the rend cache object. In the case of CIRCUIT_PURPOSE_C_INTRODUCING, the intro point was flagged has "timed out" and thus not used until the connection to the HS is closed where that flag gets reset. This commit adds an internal circuit reason called END_CIRC_REASON_IP_NOW_REDUNDANT which tells the closing circuit mechanism to not report any intro point failure. This has been observed while opening hundreds of connections to an HS on different circuit for each connection. This fix makes this use case to work like a charm. Fixes #13698. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2014-11-09Print a warning when extra info document is found incompatible with router ↵rl1987
descriptor.
2014-11-09Downgrade RSA signature verification failure error message to info loglevel.rl1987
2014-11-07Wrong format in log statementDavid Goulet
Fixes bug 13701.
2014-11-07test_checkdir.c: Perhaps this is what will make this test pass on windows?Nick Mathewson
2014-11-07test_checkdir.c: try to make it pass on windowsNick Mathewson
also fix memory-leak on failing tests.
2014-11-06Define macros meaning <,>,==,!=,<=,>=Nick Mathewson
This lets us avoid putting operators directly in macro arguments, and thus will help us unconfuse coccinelle. For ticket 13172.
2014-11-05Try to fix test_checkdir windows compilation moreNick Mathewson
2014-11-05Try to fix test_checkdir windows compilationNick Mathewson
2014-11-05chgrp the testing tempdir to ourself to clear the sticky bitNick Mathewson
Closes 13678. Doesn't actually matter for older tors.
2014-11-0511291: Fix warnings, add changes file, rename 'mask'.Nick Mathewson
2014-11-05Merge remote-tracking branch 'meejah/ticket-11291-extra-utests'Nick Mathewson
Conflicts: src/or/config.c
2014-11-04Fix a wide line I introducedNick Mathewson
2014-11-04Fix unused-argument warningsNick Mathewson
2014-11-04Merge remote-tracking branch 'andrea/ticket6456'Nick Mathewson
Somewhat tricky conflicts: src/or/config.c Also, s/test_assert/tt_assert in test_config.c
2014-11-04Merge branch 'bug13315_squashed'Nick Mathewson
Conflicts: src/or/buffers.c
2014-11-04fix indentationNick Mathewson
2014-11-04Use correct argument types for inet_pton.Nick Mathewson
(I blame whoever decided that using a void* for a union was a good idea.)
2014-11-04Sending 'Not allowed' error message before closing the connection.rl1987
2014-11-04Checking if FQDN is actually IPv6 address string and handling that case.rl1987
2014-11-04Adding helper function that checks if string is a valid IPv6 address.rl1987
2014-11-04Validating SOCKS5 hostname more correctly.rl1987
2014-11-04Introducing helper function to validate IPv4 address strings.rl1987
2014-11-04Introducing helper function to validate DNS name strings.rl1987
2014-11-04Merge remote-tracking branch 'public/bug13214_025_squashed'Nick Mathewson
2014-11-04Check descriptor ID in addition to HS ID when saving a v2 hs descriptorNick Mathewson
Fixes bug 13214; reported by 'special'.
2014-11-04Add comments and rename intro_nodes list in rend_services_introduce()David Goulet
(No changes file needed: this patch just adds comments and renames variables. This is ticket 13646. message taken from the ticket. -Nick)
2014-11-02Use tor_malloc_zero(x), not tor_calloc(x,sizeof(char))Nick Mathewson
(Also, fixes a wide line.)
2014-11-02Apply new calloc coccinelle patchNick Mathewson
2014-11-02Use the | trick to save a comparison in our calloc check.Nick Mathewson
2014-11-02Switch to a < comparison for our calloc check; explain how it worksNick Mathewson
2014-11-02Document the calloc function overflow check.Mansour Moufid
2014-11-02Remove a duplicate comment.Mansour Moufid
2014-11-02Refactor the tor_reallocarray_ overflow check.Mansour Moufid
2014-11-02Refactor the tor_calloc_ overflow check.Mansour Moufid
2014-10-31Use digest256_len in networkstatus_copy_old_consensus_info()Nick Mathewson
Now, if a router ever changes its microdescriptor, but the new microdescriptor SHA256 hash has the same 160-bit prefix as the old one, we treat it as a new microdescriptor when deciding whether to copy status information. (This function also is used to compare SHA1 digests of router descriptors, but don't worry: the descriptor_digest field either holds a SHA256 hash, or a SHA1 hash padded with 0 bytes.)
2014-10-31Use digest256map for computing microdescriptor downloadsNick Mathewson
2014-10-31Refactor {str,digest}map into a common implementation; add digest256mapNick Mathewson
Needed for #13399.
2014-10-31Re-run latest git trunnel to get fix from teor for #13577Nick Mathewson
2014-10-31Merge commit '13298d90a90dc62d21d38f910171c9b57a8f0273'Nick Mathewson
2014-10-30Bump version to 0.2.6.1-alpha-devNick Mathewson
2014-10-30Bump version to 0.2.6.1-alphaNick Mathewson
2014-10-30Silence spurious clang warningsteor
Silence clang warnings under --enable-expensive-hardening, including: + implicit truncation of 64 bit values to 32 bit; + const char assignment to self; + tautological compare; and + additional parentheses around equality tests. (gcc uses these to silence assignment, so clang warns when they're present in an equality test. But we need to use extra parentheses in macros to isolate them from other code).