[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-12-15 Thread teor
commit 1cd20ff848eab6ee7b441c5aab0578ab02a114bc
Merge: 05908d57f 7dd594609
Author: teor 
Date:   Mon Dec 16 08:15:55 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-12-06 Thread nickm
commit 74cae547e5159049bc49057b994d57e29f06e992
Merge: c53567c36 b7b467d3a
Author: Nick Mathewson 
Date:   Fri Dec 6 16:02:07 2019 -0500

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/geoip-2019-12-03 | 4 +
 src/config/geoip | 13933 ++---
 src/config/geoip6|  4621 ---
 3 files changed, 10717 insertions(+), 7841 deletions(-)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-12-02 Thread teor
commit 145ff92d9298ff2e9913b591a91a76ea0846f361
Merge: 501b5174d 792c15fde
Author: teor 
Date:   Tue Dec 3 12:45:41 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

Merge C_DIALECT_OPTIONS from ticket32500_029 with
other configure options from maint-0.3.5.

 .travis.yml | 10 +++---
 changes/ticket32500 |  5 +
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --cc .travis.yml
index 7f0e78587,51368ea51..f22732187
--- a/.travis.yml
+++ b/.travis.yml
@@@ -39,12 -32,12 +39,16 @@@ matrix
  ## We run basic tests on macOS
  - compiler: clang
os: osx
+   ## Turn off some newer features, turn on clang's -Wtypedef-redefinition
+   env: C_DIALECT_OPTIONS="-std=gnu99"
 +## We check NSS
 +## NSS is a fast job, clang is slower on Linux, so we do NSS clang
 +- env: NSS_OPTIONS="--enable-nss"
 +  compiler: clang
  ## We run chutney on Linux, because it's faster than chutney on macOS
- - env: CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes"
+ ## Use -std=gnu99 to turn off some newer features, and maybe turn on some
+ ## extra gcc warnings?
+ - env: CHUTNEY="yes" CHUTNEY_ALLOW_FAILURES="2" SKIP_MAKE_CHECK="yes" 
C_DIALECT_OPTIONS="-std=gnu99"
## (Linux only) Use an older Linux image (Ubuntu Trusty)
## The Xenial and Bionic images cause permissions issues for chutney,
## this is a workaround, until we fix #32240.
@@@ -195,16 -136,12 +199,16 @@@ install
- python --version
## If we're running chutney, show the chutney commit
- if [[ "$CHUTNEY" != "" ]]; then pushd "$CHUTNEY_PATH"; git log -1 ; popd 
; fi
 +  ## If we're running stem, show the stem version and commit
 +  - if [[ "$TEST_STEM" != "" ]]; then pushd stem; python -c "from stem import 
stem; print(stem.__version__);"; git log -1; popd; fi
  
  script:
 +  # Skip test_rebind on macOS
 +  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export 
TOR_SKIP_TEST_REBIND=true; fi
- ./autogen.sh
 -  - CONFIGURE_FLAGS="$ASCIIDOC_OPTIONS $COVERAGE_OPTIONS $HARDENING_OPTIONS 
$OPENSSL_OPTIONS --enable-fatal-warnings --disable-silent-rules"
 +  - CONFIGURE_FLAGS="$ASCIIDOC_OPTIONS $COVERAGE_OPTIONS $HARDENING_OPTIONS 
$MODULES_OPTIONS $NSS_OPTIONS $OPENSSL_OPTIONS $RUST_OPTIONS 
--enable-fatal-warnings --disable-silent-rules"
-   - echo "Configure flags are $CONFIGURE_FLAGS"
-   - ./configure $CONFIGURE_FLAGS
+   - echo "Configure flags are $CONFIGURE_FLAGS CC=\"$CC $C_DIALECT_OPTIONS\""
+   - ./configure $CONFIGURE_FLAGS CC="$CC $C_DIALECT_OPTIONS"
## We run `make check` because that's what https://jenkins.torproject.org 
does.
- if [[ "$SKIP_MAKE_CHECK" == "" ]]; then make check; fi
- if [[ "$DISTCHECK" != "" ]]; then make distcheck 
DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; fi



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-11-11 Thread nickm
commit 7beaaed245e99c57a5b35c266da4ff9fa5f2b113
Merge: 2abff832d 853b6ad09
Author: Nick Mathewson 
Date:   Mon Nov 11 10:14:03 2019 -0500

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/geoip-2019-11-06 | 4 +
 src/config/geoip | 15751 +++--
 src/config/geoip6|  3078 ++---
 3 files changed, 11485 insertions(+), 7348 deletions(-)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-11-05 Thread teor
commit 1bde356bf645f3c3d3b0a6e70c03e2baf9f89d26
Merge: 4abfcb799 0650bf369
Author: teor 
Date:   Wed Nov 6 11:19:30 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/bug31107 |  4 
 src/core/or/channeltls.c | 10 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --cc src/core/or/channeltls.c
index 91a424728,0..4db283d20
mode 100644,00..100644
--- a/src/core/or/channeltls.c
+++ b/src/core/or/channeltls.c
@@@ -1,2477 -1,0 +1,2485 @@@
 +/* * Copyright (c) 2012-2019, The Tor Project, Inc. */
 +/* See LICENSE for licensing information */
 +
 +/**
 + * \file channeltls.c
 + *
 + * \brief A concrete subclass of channel_t using or_connection_t to transfer
 + * cells between Tor instances.
 + *
 + * This module fills in the various function pointers in channel_t, to
 + * implement the channel_tls_t channels as used in Tor today.  These channels
 + * are created from channel_tls_connect() and
 + * channel_tls_handle_incoming(). Each corresponds 1:1 to or_connection_t
 + * object, as implemented in connection_or.c.  These channels transmit cells
 + * to the underlying or_connection_t by calling
 + * connection_or_write_*_cell_to_buf(), and receive cells from the underlying
 + * or_connection_t when connection_or_process_cells_from_inbuf() calls
 + * channel_tls_handle_*_cell().
 + *
 + * Here we also implement the server (responder) side of the v3+ Tor link
 + * handshake, which uses CERTS and AUTHENTICATE cell to negotiate versions,
 + * exchange expected and observed IP and time information, and bootstrap a
 + * level of authentication higher than we have gotten on the raw TLS
 + * handshake.
 + *
 + * NOTE: Since there is currently only one type of channel, there are probably
 + * more than a few cases where functionality that is currently in
 + * channeltls.c, connection_or.c, and channel.c ought to be divided up
 + * differently.  The right time to do this is probably whenever we introduce
 + * our next channel type.
 + **/
 +
 +/*
 + * Define this so channel.h gives us things only channel_t subclasses
 + * should touch.
 + */
 +#define TOR_CHANNEL_INTERNAL_
 +
 +#define CHANNELTLS_PRIVATE
 +
 +#include "core/or/or.h"
 +#include "core/or/channel.h"
 +#include "core/or/channeltls.h"
 +#include "core/or/circuitmux.h"
 +#include "core/or/circuitmux_ewma.h"
 +#include "core/or/command.h"
 +#include "app/config/config.h"
 +#include "core/mainloop/connection.h"
 +#include "core/or/connection_or.h"
 +#include "feature/control/control.h"
 +#include "feature/client/entrynodes.h"
 +#include "trunnel/link_handshake.h"
 +#include "core/or/relay.h"
 +#include "feature/stats/rephist.h"
 +#include "feature/relay/router.h"
 +#include "feature/relay/routermode.h"
 +#include "feature/nodelist/dirlist.h"
 +#include "core/or/scheduler.h"
 +#include "feature/nodelist/torcert.h"
 +#include "feature/nodelist/networkstatus.h"
 +#include "trunnel/channelpadding_negotiation.h"
 +#include "core/or/channelpadding.h"
 +
 +#include "core/or/cell_st.h"
 +#include "core/or/cell_queue_st.h"
 +#include "core/or/extend_info_st.h"
 +#include "core/or/or_connection_st.h"
 +#include "core/or/or_handshake_certs_st.h"
 +#include "core/or/or_handshake_state_st.h"
 +#include "feature/nodelist/routerinfo_st.h"
 +#include "core/or/var_cell_st.h"
 +
 +#include "lib/tls/tortls.h"
 +#include "lib/tls/x509.h"
 +
 +/** How many CELL_PADDING cells have we received, ever? */
 +uint64_t stats_n_padding_cells_processed = 0;
 +/** How many CELL_VERSIONS cells have we received, ever? */
 +uint64_t stats_n_versions_cells_processed = 0;
 +/** How many CELL_NETINFO cells have we received, ever? */
 +uint64_t stats_n_netinfo_cells_processed = 0;
 +/** How many CELL_VPADDING cells have we received, ever? */
 +uint64_t stats_n_vpadding_cells_processed = 0;
 +/** How many CELL_CERTS cells have we received, ever? */
 +uint64_t stats_n_certs_cells_processed = 0;
 +/** How many CELL_AUTH_CHALLENGE cells have we received, ever? */
 +uint64_t stats_n_auth_challenge_cells_processed = 0;
 +/** How many CELL_AUTHENTICATE cells have we received, ever? */
 +uint64_t stats_n_authenticate_cells_processed = 0;
 +/** How many CELL_AUTHORIZE cells have we received, ever? */
 +uint64_t stats_n_authorize_cells_processed = 0;
 +
 +/** Active listener, if any */
 +static channel_listener_t *channel_tls_listener = NULL;
 +
 +/* channel_tls_t method declarations */
 +
 +static void channel_tls_close_method(channel_t *chan);
 +static const char * channel_tls_describe_transport_method(channel_t *chan);
 +static void channel_tls_free_method(channel_t *chan);
 +static double channel_tls_get_overhead_estimate_method(channel_t *chan);
 +static int
 +channel_tls_get_remote_addr_method(channel_t *chan, tor_addr_t *addr_out);
 +static int
 +channel_tls_get_transport_name_method(channel_t *chan, char **transport_out);
 +static const char *
 +channel_tls_get_remote_descr_method(channel_t *chan, int flags);
 +static int 

[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-28 Thread teor
commit 15d67842f9c1cb993491cf473478999dace7c6c2
Merge: e03db9934 752c35ca9
Author: teor 
Date:   Tue Oct 29 08:26:32 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

 .travis.yml | 7 ---
 changes/ticket32241 | 2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --cc .travis.yml
index 4ded5e25a,4ea9400b8..7f0e78587
--- a/.travis.yml
+++ b/.travis.yml
@@@ -145,19 -106,13 +145,20 @@@ addons
## Always installed, because manual brew installs are hard to get right
- asciidoc
- xmlto
 +  ## Utilities
 +  ## preventing or diagnosing hangs
 +  - timelimit
  
- ## (OSX only) Use the default OSX image
+ ## (OSX only) Use a recent macOS image
  ## See https://docs.travis-ci.com/user/reference/osx#os-x-version
- ## Default is Xcode 9.4 on macOS 10.13 as of August 2018
- #osx_image: xcode9.4
+ ## Default is Xcode 9.4 on macOS 10.13 as of October 2019
+ ## Recent is Xcode 11.2 on macOS 10.14 as of October 2019
+ osx_image: xcode11.2
  
 +before_install:
 +  ## Create empty rust directories for non-Rust builds, so caching succeeds
 +  - if [[ "$RUST_OPTIONS" == "" ]]; then mkdir -p $HOME/.cargo 
$TRAVIS_BUILD_DIR/src/rust/target; fi
 +
  install:
## If we're on OSX, configure ccache (ccache is automatically installed and 
configured on Linux)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export 
PATH="/usr/local/opt/ccache/libexec:$PATH"; fi



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-24 Thread teor
commit e03db9934a0d26da0b119a2d15d51c4c658af1c8
Merge: 1eb57b20b 93be7275e
Author: teor 
Date:   Fri Oct 25 10:55:51 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/ticket31919_bionic | 5 +
 1 file changed, 5 insertions(+)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-22 Thread teor
commit d175e70817ccff01cd9eb73d8da9e306745fb469
Merge: c77162e4e 8682442c7
Author: teor 
Date:   Wed Oct 23 08:47:01 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-22 Thread teor
commit 1ea19d7a5bf538f5b9f0988c2375966f88d87867
Merge: 21c3488af 7660a7cf7
Author: teor 
Date:   Wed Oct 23 08:24:30 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

`git merge --strategy ours` to take the 0.3.5 changes for 31001,
and ignore the conflicting 0.2.9 changes.




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-16 Thread teor
commit 4b8e5ea0dce85bb96ce92f171246aa101feda4ac
Merge: 702aa8f77 c660f4796
Author: teor 
Date:   Thu Oct 17 14:51:50 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-10-02 Thread nickm
commit 7b9cb4c47bc9d1ca4e120af2b00a0f0747cd7b20
Merge: 02840169d 90de776ea
Author: Nick Mathewson 
Date:   Wed Oct 2 08:01:33 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/geoip-2019-10-01 | 4 +
 src/config/geoip | 35299 ++---
 src/config/geoip6|  8318 ---
 3 files changed, 26359 insertions(+), 17262 deletions(-)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-09-17 Thread nickm
commit 50b45c43eb990b0b9b76a550b03eb9db229ad4f8
Merge: dc41e6a80 967460389
Author: Nick Mathewson 
Date:   Tue Sep 17 21:26:31 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/doc31089|   4 +
 contrib/operator-tools/tor-exit-notice.html | 177 +++-
 2 files changed, 176 insertions(+), 5 deletions(-)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-09-17 Thread nickm
commit 2ebe1fcd52778ea2d305331f4283366eb35c9d93
Merge: 97f7efa9e 484710f25
Author: Nick Mathewson 
Date:   Tue Sep 17 18:57:49 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

"ours" merge to avoid picking up 0.2.9 version of ticket 31673.




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-08-19 Thread nickm
commit 5653b93a1d25e173bebb8f45d364e3a578572789
Merge: d253b31ce 5a1c3e44f
Author: Nick Mathewson 
Date:   Mon Aug 19 10:37:21 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/ticket31406  | 3 +++
 src/app/config/auth_dirs.inc | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-08-09 Thread teor
commit 5df0b36623005526588c35cb63b47dd256dcc5b7
Merge: 654769bce 254c1bac4
Author: teor 
Date:   Sat Aug 10 07:25:57 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

Delete src/or/buffers.c which was fixup'ed in 0.2.9 but moved in 0.3.5.
The 0.2.9 fix is not required for the 0.3.5 patch.
Resolves merge conflict caused by 30041.




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-08-08 Thread teor
commit 1bc2ae7be7c0f418de565b4a11bbb5d510c958a9
Merge: e15b9b179 8d22c09ab
Author: teor 
Date:   Thu Aug 8 11:10:15 2019 +1000

Merge branch 'maint-0.2.9' into maint-0.3.5

Merge rust additions in 0.3.5 with sudo deletions in 0.2.9.




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-07-01 Thread nickm
commit 1dd95278970f9f32d83a31fe73e0258a30523539
Merge: b0fa1f4fb fb977f8ca
Author: Nick Mathewson 
Date:   Mon Jul 1 14:25:12 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/ticket28795  |   5 +
 src/app/config/fallback_dirs.inc | 567 ++-
 2 files changed, 266 insertions(+), 306 deletions(-)




___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tor/maint-0.4.1] Merge branch 'maint-0.2.9' into maint-0.3.5

2019-06-11 Thread nickm
commit b0fa1f4fb0b4f6a474b20e40e2810936c0577cc2
Merge: dcb8cad4e 0ec4ebd00
Author: Nick Mathewson 
Date:   Tue Jun 11 10:17:17 2019 -0400

Merge branch 'maint-0.2.9' into maint-0.3.5

 changes/geoip-2019-06-10 | 4 +
 src/config/geoip | 14985 +
 src/config/geoip6|  2391 ++--
 3 files changed, 9920 insertions(+), 7460 deletions(-)



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits