summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-01-18Merge remote-tracking branch 'public/bug14219_025'Nick Mathewson
2015-01-18Do not replace a HS descriptor with a different replica of itselfRoger Dingledine
This fixes a bug where we'd fetch different replicas of the same descriptor for a down hidden service over and over, until we got lucky and fetched the same replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha. (Patch from Roger; commit message and changes file by Nick.)
2015-01-18Merge remote-tracking branch 'public/bug14261_025'Nick Mathewson
Conflicts: src/or/directory.c
2015-01-18Increase limit for status vote download size by a factor of 5.Nick Mathewson
We've started to hit the limit here. We introduced the limit in 0.1.2.5-alpha. This fixes bug 14261, but we should have a smarter way to not actually do the behavior this permits. See #14267 for a ticket about fixing that.
2015-01-18Merge remote-tracking branch 'public/bug12485'Nick Mathewson
2015-01-16No, client-side DNS cacheing should not be on by default.Nick Mathewson
2015-01-16Merge branch 'bug8546_squashed'Nick Mathewson
Conflicts: src/or/connection.c src/or/or.h src/or/relay.c
2015-01-16Replace field-by-field copy with memcpy for entry_port_cfgNick Mathewson
2015-01-16Move entry_port_cfg_t fields in entry_connection_tNick Mathewson
Also rename some options for uniformity, and apply this script: @@ entry_connection_t *conn; @@ conn-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-16Combine entry_port_cfg_t fields in listener_connection_tNick Mathewson
Also, revise the code using these options with this cocci script: @@ listener_connection_t *conn; @@ conn-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-16Split client-specific and server-specific parts of port_cfg_tNick Mathewson
Also, apply this cocci script to transform accesses. (Plus manual migration for accesses inside smartlist_foreach loops.) @@ port_cfg_t *cfgx; @@ cfgx-> +server_cfg. \( no_advertise \| no_listen \| all_addrs \| bind_ipv4_only \| bind_ipv6_only \) @@ port_cfg_t *cfgx; @@ cfgx-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-15Fix a compilation warning in the unit testsNick Mathewson
2015-01-15Ignore warning for redundant decl in openssl/srtp.hNick Mathewson
Backports some commits from tor master.
2015-01-15Add string for IP_NOW_REDUNDANT in circuit_end_reason_to_control_stringNick Mathewson
Closes 14207; bugfix on 0.2.6.2-alpha.
2015-01-15unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.George Kadianakis
Do this in even more places to try to fix the build.
2015-01-15fix typoRoger Dingledine
2015-01-15Merge remote-tracking branch 'andrea/bug12194_alt'Nick Mathewson
2015-01-15Fix the checkdir/perms test when umask==077Nick Mathewson
Fixes 14215; bugfix on 0.2.6.2-alpha. Reported by "cypherpunks".
2015-01-15Add comments in rendclient.c noting that certain functions involved in ↵Andrea Shepard
handling ended HS connection attempts must be idempotent
2015-01-15unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.George Kadianakis
2015-01-15unittests: Change some tt_assert()s to tt_int_op()s.George Kadianakis
2015-01-15Restrict sample values of the Laplace distribution to int64_t.George Kadianakis
This helps avoid undefined behavior from casting big double values to int64_t. Fixes #14090.
2015-01-14Merge remote-tracking branch 'public/bug13397'Nick Mathewson
2015-01-14Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2015-01-14Do not log a notice on every socks connectionNick Mathewson
2015-01-14New minimum uptime to become an HSDir is 96 hours.George Kadianakis
2015-01-13Fix new unused variable warning in connection_listener_newNick Mathewson
2015-01-13whitespace fixNick Mathewson
2015-01-13Merge remote-tracking branch 'andrea/ticket12585_v3'Nick Mathewson
2015-01-13Remove needless strdup in addressmap_register_virtual_address()Nick Mathewson
Fixes bug 14195. Bugfix on 0.1.0.1-rc.
2015-01-12Fix a conversion warning on 32-bit clangNick Mathewson
2015-01-12On jessie, we need a =, not a ==Nick Mathewson
2015-01-12mktemp wants some XsNick Mathewson
2015-01-12Tweak zero_length_keys.sh and test/include.am to make out-of-tree builds workNick Mathewson
2015-01-13Explicitly chmod AF_UNIX sockets to 0600 when *GroupWritable isn't specifiedAndrea Shepard
2015-01-13Remove no-longer-accurate comment from connection.cAndrea Shepard
2015-01-13Fix ipv4/ipv6 traffic bits on AF_UNIX socks listeners and remove hacky ↵Andrea Shepard
workarounds for brokenness
2015-01-12Fix default list handling for parse_unix_socket_config(); avoid clearing ↵Andrea Shepard
whole pre-existing list
2015-01-12Merge remote-tracking branch 'teor/bug13111-empty-key-files-fn-empty'Nick Mathewson
2015-01-12reindent cell_queues_check_size()Nick Mathewson
2015-01-12Merge branch 'bug13806_squashed'Nick Mathewson
Conflicts: src/or/relay.c
2015-01-12When OOM, free cached hidden service descriptors too.Nick Mathewson
2015-01-12Kill duplicated code in connection_listener_new()Andrea Shepard
2015-01-12src/common/compat_libevent.h: include testsupport.hAnthony G. Basile
When tor is configured with --enable-bufferevents, the build fails because compat_libevent.h makes use of the macro MOCK_DECL() which is defined in testsupport.h, but not included. We add the include.
2015-01-12Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2015-01-12Merge remote-tracking branch 'public/bug14129_024' into maint-0.2.5Nick Mathewson
2015-01-11Fix unused-parameter warning in systemd_watchdog_callbackNick Mathewson
2015-01-11fix and enable systemd watchdogTomasz Torcz
There were following problems: - configure.ac wrongly checked for defined HAVE_SYSTEMD; this wasn't working, so the watchdog code was not compiled in. Replace library search with explicit version check - sd_notify() watchdog call was unsetting NOTIFY_SOCKET from env; this means only first "watchdog ping" was delivered, each subsequent one did not have socket to be sent to and systemd was killing service - after those fixes, enable Watchdog in systemd unit with one minute intervals
2015-01-11send more details about daemon status to supervisorTomasz Torcz
If running under systemd, send back information when reloading configuration and gracefully shutting down. This gives administator more information about current Tor daemon state.
2015-01-11send PID of the main daemon to supervisorTomasz Torcz
If running under systemd, notify the supervisor about current PID of Tor daemon. This makes systemd unit simpler and more robust: it will do the right thing regardless of RunAsDaemon settings.