aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-14Whitespace cleaningNick Mathewson
2016-10-14adding instructions how to include new test filesChelsea H. Komlo
2016-10-14Merge branch 'bug20176_v2'Nick Mathewson
2016-10-14Merge remote-tracking branch 'public/spaces_in_unix_addrs'Nick Mathewson
2016-10-14Make the FreeBSD ersatz_socketpair test even more skippable.Nick Mathewson
(This is safe, since only windows actually -uses- erstaz_socketpair.)
2016-10-14Merge branch 'bug18357_v2'Nick Mathewson
2016-10-14Extract ExitPolicy-and-IPv6Exit check into a new functionNick Mathewson
(I've done this instead of changing the semantics of router_compare_to_my_exit_policy, because dns.c uses router_compare_to_my_exit_policy too, in a slightly weird way.)
2016-10-13ersatz socketpair tests: work around freebsd jails.Nick Mathewson
2016-10-13Tweak patch for 18529.Nick Mathewson
- function doesn't need to be inline. - rename function - Make documentation more pedantically correct - Remove needless "? 1 : 0."
2016-10-13Remove duplicate code that checks for default authoritiesNick Mathewson
Patch from ericho. Fixes 18529. Simple refactoring.
2016-10-11Fix a bug in displaying IPv6 addrs in test_op_ipv6_ with --verboseNick Mathewson
The test code, if it failed, or if it was run in verbose mode, would use the wrong variable for its loop. Patch from rubiate uploaded to 19999.
2016-10-11Switch from "AF_UNIX is always equal" to "always unequal" to avoid wacky ↵Nick Mathewson
bugs. See discussion on 20261
2016-10-11Merge remote-tracking branch 'yawning-schwanenlied/bug20261'Nick Mathewson
2016-10-11Fix a new compilation warning with broken-mulodi i386 clang builds. :(Nick Mathewson
2016-10-11Fix spurious compiler warning in do_getpass().Nick Mathewson
Some compilers apparently noticed that p2len was allowed to be equal to msg, and so maybe we would be doing memset(prompt2, ' ', 0), and decided that we probably meant to do memset(prompt2, 0, 0x20); instead. Stupid compilers, doing optimization before this kind of warning! My fix is to just fill the entire prompt2 buffer with spaces, because it's harmless. Bugfix on e59f0d4cb964387c5, not in any released Tor.
2016-10-11torrc parsing b0rks on carriage-returnpaolo.ingls@gmail.com
(Specifically, carriage return after a quoted value in a config line. Fixes bug 19167; bugfix on 0.2.0.16-alpha when we introduced support for quoted values. Unit tests, changes file, and this parenthetical by nickm.)
2016-10-11Merge remote-tracking branch 'asn/bug19223'Nick Mathewson
2016-10-10Bug 20261: Treat AF_UNIX addresses as equal when comparing them.Yawning Angel
This is a kludge to deal with the fact that `tor_addr_t` doesn't contain `sun_path`. This currently ONLY happens when circuit isolation is being checked, for an isolation mode that is force disabled anyway, so the kludge is "ugly but adequate", but realistically, making `tor_addr_t` and the AF_UNIX SocksPort code do the right thing is probably the better option.
2016-10-10Fix non-triggerable heap corruption at do_getpass().George Kadianakis
2016-10-06Merge branch 'no_openssl_100'Nick Mathewson
2016-10-06Stop implying that we support openssl 1.0.0; we don't.Nick Mathewson
Closes ticket 20303. The LIBRESSL_VERSION_NUMBER check is needed because if our openssl is really libressl, it will have an openssl version number we can't really believe.
2016-10-06comment tweak. Fixes 20271. patch from pastly.Nick Mathewson
2016-10-06Merge branch 'maint-0.2.8'Nick Mathewson
2016-10-06Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-10-06Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-10-06Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-10-06Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-10-06Only use -levent when checking functions if we will use it to link.Nick Mathewson
Fixes 19904; bugfix on b62abf9f21499ab; patch from Rubiate.
2016-10-05dircollate: Use correct tor_calloc args.Muhammad Falak R Wani
Flip the tor_calloc arguments in the call. Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2016-10-05Clean up and fix exit policy check in connection_exit_connect().Nick Mathewson
Previously, we would reject even rendezvous connections to IPv6 addresses when IPv6Exit was false. But that doesn't make sense; we don't count that as "exit"ing. I've corrected the logic and tried to make it a lottle more clear. Fixes bug 18357; this code has been wrong since 9016d9e8294a352 in 0.2.4.7-alpha.
2016-10-05Update geoip and geoip6 to the October 6 2016 database.Karsten Loesing
2016-10-04Allow a unix: address to contain a C-style quoted string.Nick Mathewson
Feature 18753 -- all this to allow spaces.
2016-10-03Add TAGS to gitignore.Nick Mathewson
2016-10-03Merge remote-tracking branch 'arma/bug20277'Nick Mathewson
2016-10-03Teach 'make tags' about MOCK_IMPL.Nick Mathewson
Patch from nherring; closes ticket 16869
2016-10-03Avoid reordering IPv6 interface addressescypherpunks
When deleting unsuitable addresses in get_interface_address6_list(), to avoid reordering IPv6 interface addresses and keep the order returned by the OS, use SMARTLIST_DEL_CURRENT_KEEPORDER() instead of SMARTLIST_DEL_CURRENT(). This issue was reported by René Mayrhofer. [Closes ticket 20163; changes file written by teor. This paragraph added by nickm]
2016-10-03Fix parse_virtual_addr_network minimum network sizePaolo Inglese
2016-10-02remove whitespace accidentally added in 4f1a04ffRoger Dingledine
2016-10-02remove confusing comment about conditional consensus downloadRoger Dingledine
We removed that feature in 0.2.4.2-alpha, but some comments seem to have lingered. I didn't add a changes/ file since this is just internal code cleanup.
2016-09-30Bug 20261: Disable IsolateClientAddr on AF_LOCAL SocksPorts.Yawning Angel
The client addr is essentially meaningless in this context (yes, it is possible to explicitly `bind()` AF_LOCAL client side sockets to a path, but no one does it, and there are better ways to grant that sort of feature if people want it like using `SO_PASSCRED`).
2016-09-28Fix memory leak from prop264 branch. CID 1373401Nick Mathewson
2016-09-26fix a warning in protover.Nick Mathewson
2016-09-26Merge remote-tracking branch 'public/ticket20001_v2'Nick Mathewson
2016-09-26Merge branch 'protover_v2_squashed'Nick Mathewson
2016-09-26protovers: during voting, assert that we are not voting to shut down.Nick Mathewson
As a failsafe, we should make sure that no authority ever votes for a set of protocol versions that it does not itself support.
2016-09-26Remove version_known, and subtly change the meaning of protocols_knownNick Mathewson
2016-09-26Rename "proto " to "pr " in consensusesNick Mathewson
2016-09-26Update prop264 implementation to split HSMid->HS{Intro,Rend}Nick Mathewson
2016-09-26prop264: sometimes check client _and_ server versions.Nick Mathewson
As before, we check server protocols whenever server_mode(options) is true and we check client protocols whenever server_mode(options) is false. Additionally, we now _also_ check client protocols whenever any client port is set.
2016-09-26Rename get_supported_protocols to protover_get_supported_protocolsNick Mathewson