summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2012-05-14Remove all instances of WIN32_WINNT (without leading _)Nick Mathewson
We started adding it in 59e2c77824840f back in 2004, 8 years and 3 days ago. It's time to deprogram ourselves from this cargo cult.
2012-05-14MSVC build issue: it can't tell that tor_assert(0) aborts.Nick Mathewson
2012-05-14MSVC build issue: make 'const' in declaration match 'const' in definitionNick Mathewson
MSVC warns if you declare a function as having a "int foo" argument and then implement it with a "const int foo" argument, even though the latter "const" is not a part of the function's interface.
2012-05-14MSVC build issue: we use INLINE as the one that will magically workNick Mathewson
2012-05-14Be a good git person: store nmakefiles in correct text fmtNick Mathewson
2012-05-11Do not publish the "git-XXX" tag in server descriptorsNick Mathewson
Instead, allow packagers to put a 'TOR_BUILD_TAG' field in the server descriptor to indicate a platform-specific value, if they need to. (According to weasel, this was his use for the git- tag previously.) This is part of 2988
2012-05-11Fix a couple of wide linesNick Mathewson
2012-05-11Merge remote-tracking branch 'asn/bug4865_take2'Nick Mathewson
2012-05-10Merge branch 'maint-0.2.2'Roger Dingledine
2012-05-10fix over-wide line from f661747370Roger Dingledine
2012-05-10Fix O(n^2) performance when parsing a big pile of extrainfosNick Mathewson
We were doing an O(n) strlen in router_get_extrainfo_hash() for every one we tried to parse. Instead, have router_get_extrainfo_hash() take the length of the extrainfo as an argument, so that when it's called from extrainfo_parse_from_string(), it doesn't do a strlen() over the whole pile of extrainfos.
2012-05-10Merge branch 'bug5786'Nick Mathewson
2012-05-10Merge remote-tracking branch 'linus/bug5146'Nick Mathewson
2012-05-10Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2012-05-10Add missing CRLFs to AUTHCHALLENGE failure repliesRavi Chandra Padmala
Fix #5760
2012-05-07Detect out-of-bounds bwweightscale values early in the voting processNick Mathewson
If the authorities agreed on a sufficiently bad bwweightscale value (<=0 or == INT32_MAX), the bandwidth algorithm could make the voters assert while computing the consensus. Fix for bug5786; bugfix on 0.2.2.17-alpha
2012-05-07Check more thoroughly for dups when parsing networkstatus parametersNick Mathewson
See changes file for details. Partial fix for bug 5786; fix on 0.2.2.2-alpha.
2012-05-07Merge branch 'bug5645_take2'Nick Mathewson
2012-05-07Make a cast less const-violating; make a field size explicit.Nick Mathewson
2012-05-07Reorder rend_mid_rendezvous() to do protocol violation checks on top.George Kadianakis
2012-05-07Using %d to printf an enum may not be by-the-standard okay.Nick Mathewson
2012-05-07Fix an overwide lineNick Mathewson
2012-05-07Fix comments: There is no such thing as a NUL pointerNick Mathewson
2012-05-07Document some transports.c behaviors and assumptionsNick Mathewson
2012-05-03Ignore [::] when building descriptors.Linus Nordberg
This is how IPv6 says "0.0.0.0" and something we will have to translate into a globally reachable address before putting it in a descriptor. The fix is a short term solution until a real one is implemented. Closes #5146.
2012-05-03Make transports.c logs a bit more helpful.George Kadianakis
2012-05-01Add a missing ntohl to tell_controller_about_resolve_resultNick Mathewson
Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)
2012-04-24Merge remote-tracking branch 'arma/bug5623'Nick Mathewson
2012-04-24peel off some unnecessary parensRoger Dingledine
2012-04-24Merge remote-tracking branch 'nickm/bug2497'Roger Dingledine
2012-04-24Merge remote-tracking branch 'public/bug4572'Nick Mathewson
2012-04-24Add a check_no_tls_errors() to read_to_buf_tlsArturo Filastò
Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code". This check was added back in 0.1.0.3-rc, but somehow we forgot to leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc. (patch by Arturo; commit message and changes file by nickm)
2012-04-24be willing to use nodes in excludeexitnodes as directory mirrorsRoger Dingledine
fixes bug 5623.
2012-04-24Merge branch 'bug4438-v2'Nick Mathewson
2012-04-24Tweak the bug4438 fix a little: different check, better logNick Mathewson
Instead of checking for 'rejected' and calling everything else okay, let's check for 'outdated' and call everythign else a problem. This way we don't risk missing future errors so much. When logging a message that _looks_ like an error message at info, we should mention that it isn't really a problem.
2012-04-24Merge remote-tracking branch 'public/bug5537'Nick Mathewson
2012-04-20Don't reset intro-point creation rate-limiting timerRobert Ransom
Previously, we would reset it at the drop of a hat -- every time a second passes without any of the intro-point circs already launched for the service failing. Fixes bug 4607.
2012-04-20Merge remote-tracking branch 'public/bug5647_cleanup'Nick Mathewson
2012-04-19Merge remote-tracking branch 'asn-mytor/bug5601'Nick Mathewson
2012-04-19Make base64_decode in rend_parse_client_keys more foolproofNick Mathewson
In general, whenever we can, we should be doing base64_decode(buf, sizeof(buf), s, strlen(s)), and not base_64_decode(buf, expr1, s, expr2) where we hope that expr1 is a good name for the size of buf and expr2 is a good formula for the length of the base64 expression in s.
2012-04-19Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2012-04-18Fix a log-uninitialized-buffer bug.Nick Mathewson
Fix for 5647; bugfix on 0.2.1.5-alpha.
2012-04-18Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/rendservice.c Conflicts were due to new NON_ANONYMOUS_MODE_ENABLED tor2web code; I think I resolved them correctly.
2012-04-18rend_service_introduce(): do protocol violation check before anything else.George Kadianakis
(Cherry-picked from 6ba13e4 by nickm)
2012-04-17Don't fetch v2 networkstatuses from caches, even if auths are downNick Mathewson
Fix for 5635; fix on 0.2.2.26-beta, where caches stopped fetching this information.
2012-04-12Fix issues found by nickm.George Kadianakis
* Document fmt_addr_impl() and friends. * Parenthesize macro arguments. * Rename get_first_listener_addrport_for_pt() to get_first_listener_addrport_string(). * Handle port_cfg_t with no_listen. * Handle failure of router_get_active_listener_port_by_type(). * Add an XXX to router_get_active_listener_port_by_type().
2012-04-12Trivially refactor validate_pluggable_transports_config().George Kadianakis
* Remove the ugly if statement. * constify 'bridge_info_t' in SMARTLIST_FOREACH_BEGIN.
2012-04-12Improve the message of validate_pluggable_transports_config().George Kadianakis
2012-04-11Obsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelaysNick Mathewson
Closes ticket 4572.
2012-04-11Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson