[wesnoth-commits] [wesnoth/wesnoth] da8635: Add TLS codepath to server_base

Sergey Popov noreply at github.com
Sat Apr 17 16:18:57 UTC 2021


  Branch: refs/heads/tls_wip
  Home:   https://github.com/wesnoth/wesnoth
  Commit: da863501a1fac93bb310a33cb37318ba73f4ef2d
      https://github.com/wesnoth/wesnoth/commit/da863501a1fac93bb310a33cb37318ba73f4ef2d
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M SConstruct
    M src/server/campaignd/server.cpp
    M src/server/common/server_base.cpp
    M src/server/common/server_base.hpp
    M src/server/wesnothd/server.cpp
    M src/server/wesnothd/server.hpp

  Log Message:
  -----------
  Add TLS codepath to server_base


  Commit: 906b97a64b0fec1752196765df8a833b998ae6b6
      https://github.com/wesnoth/wesnoth/commit/906b97a64b0fec1752196765df8a833b998ae6b6
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/forum_user_handler.cpp
    M src/server/common/forum_user_handler.hpp
    M src/server/common/server_base.cpp
    M src/server/common/server_base.hpp
    M src/server/common/user_handler.hpp
    M src/server/wesnothd/game.cpp
    M src/server/wesnothd/player_connection.hpp
    M src/server/wesnothd/server.cpp
    M src/server/wesnothd/server.hpp

  Log Message:
  -----------
  Implement support in wesnothd to handle both unencrypted and TLS sockets


  Commit: b8e6f48f4576fa2af0762ac35041d1ce994572b7
      https://github.com/wesnoth/wesnoth/commit/b8e6f48f4576fa2af0762ac35041d1ce994572b7
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/server_base.cpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Add TLS support to multiplayer client


  Commit: 277178c04e9b327d2ed6e545129a6bd3daa74944
      https://github.com/wesnoth/wesnoth/commit/277178c04e9b327d2ed6e545129a6bd3daa74944
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Prevent hang in case of connecting to old server not supporting new handshake value


  Commit: c5e67328f5c8a924db658f3dd919afb808682606
      https://github.com/wesnoth/wesnoth/commit/c5e67328f5c8a924db658f3dd919afb808682606
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Implemented auto-fallback for servers that don't support TLS


  Commit: 4afb7ea9d194768a0c4ad73c38995ea35c6f04d3
      https://github.com/wesnoth/wesnoth/commit/4afb7ea9d194768a0c4ad73c38995ea35c6f04d3
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/server_base.cpp
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Avoid extra reconnect when connecting to server with TLS disabled


  Commit: 13eb5220252d4ca2841dc997152ae717a26a99b7
      https://github.com/wesnoth/wesnoth/commit/13eb5220252d4ca2841dc997152ae717a26a99b7
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/server_base.cpp

  Log Message:
  -----------
  Fixed type check in if constexpr


  Commit: cdc98d0605dedc2286be51d4a70967acc8bfe98c
      https://github.com/wesnoth/wesnoth/commit/cdc98d0605dedc2286be51d4a70967acc8bfe98c
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Don't use TLS for explicitly specified ip adresses


  Commit: e25402001f3221834c53e937e641010ae2e2773d
      https://github.com/wesnoth/wesnoth/commit/e25402001f3221834c53e937e641010ae2e2773d
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Don't use TLS for connections to loopback addresses


  Commit: b361ab05463261fceacf56f87c1a20bdf8b6d1b7
      https://github.com/wesnoth/wesnoth/commit/b361ab05463261fceacf56f87c1a20bdf8b6d1b7
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Properly shut down client connection preventing TLS tuncation


  Commit: ec2157d04e2e74d1b3a868d8933f2ee08f20241c
      https://github.com/wesnoth/wesnoth/commit/ec2157d04e2e74d1b3a868d8933f2ee08f20241c
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/wesnothd/server.cpp

  Log Message:
  -----------
  Avoid TLS truncation in user kick operation


  Commit: e2085e350d0fb6f66280da7a1a81d3637ceaa7b9
      https://github.com/wesnoth/wesnoth/commit/e2085e350d0fb6f66280da7a1a81d3637ceaa7b9
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Made use of utils::get_if


  Commit: 51f0ec3bc76e1a514ffc9bacf85ba17008c38139
      https://github.com/wesnoth/wesnoth/commit/51f0ec3bc76e1a514ffc9bacf85ba17008c38139
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/campaignd/server.cpp
    M src/server/campaignd/server.hpp
    M src/server/common/server_base.cpp

  Log Message:
  -----------
  Add TLS support to campaignd


  Commit: 8c6df76c1588165955fae7fc885e84c94a97317e
      https://github.com/wesnoth/wesnoth/commit/8c6df76c1588165955fae7fc885e84c94a97317e
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp

  Log Message:
  -----------
  Add TLS support to addon client


  Commit: ffcf63be2c2f5eef95739f2699ca4a0b51073b44
      https://github.com/wesnoth/wesnoth/commit/ffcf63be2c2f5eef95739f2699ca4a0b51073b44
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/campaignd/server.cpp
    M src/server/common/server_base.cpp

  Log Message:
  -----------
  Add userspace codepath for coro_send_file


  Commit: 12e76fd533aa35f87e7307c7aa252e6c34f12b94
      https://github.com/wesnoth/wesnoth/commit/12e76fd533aa35f87e7307c7aa252e6c34f12b94
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/campaignd/server.cpp

  Log Message:
  -----------
  Add TLS marker to campaignd's log output


  Commit: b4110c55aea0e9ce535af34dc1b9c6804ef6940b
      https://github.com/wesnoth/wesnoth/commit/b4110c55aea0e9ce535af34dc1b9c6804ef6940b
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.cpp
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Fix build with boost < 1.73


  Commit: ad7f31ffd3963bf592aa4cdea414cf5609154928
      https://github.com/wesnoth/wesnoth/commit/ad7f31ffd3963bf592aa4cdea414cf5609154928
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M CMakeLists.txt
    M src/CMakeLists.txt

  Log Message:
  -----------
  Fix cmake build


  Commit: 0653d394c7e60406ab0dee9a5c948e3c4c15e3ab
      https://github.com/wesnoth/wesnoth/commit/0653d394c7e60406ab0dee9a5c948e3c4c15e3ab
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/campaignd/server.cpp

  Log Message:
  -----------
  Made use of utils::holds_alternative


  Commit: a5793736bf58426302dbfebd49d01580bb8ab255
      https://github.com/wesnoth/wesnoth/commit/a5793736bf58426302dbfebd49d01580bb8ab255
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/forum_user_handler.hpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Fix out-of=date doxygen comments


  Commit: 9529d106c24b9e2d7890b87a1faace8e41c4d54c
      https://github.com/wesnoth/wesnoth/commit/9529d106c24b9e2d7890b87a1faace8e41c4d54c
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Hold sockets in unique_ptrs to avoid the need for variant::emplace()


  Commit: 1fd51ef4f2e4084378a35568e0d4983e7bcd0d39
      https://github.com/wesnoth/wesnoth/commit/1fd51ef4f2e4084378a35568e0d4983e7bcd0d39
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M CMakeLists.txt
    M SConstruct
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Drop compatibility for boost 1.65


  Commit: cef6a729ac14f8fe05554919ac0406fb822af955
      https://github.com/wesnoth/wesnoth/commit/cef6a729ac14f8fe05554919ac0406fb822af955
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/server/common/server_base.cpp
    M src/server/common/server_base.hpp

  Log Message:
  -----------
  Replace constexpr if abuse with function overloading


  Commit: 06692661b36e6352063d1773be6d3e9350bdfe31
      https://github.com/wesnoth/wesnoth/commit/06692661b36e6352063d1773be6d3e9350bdfe31
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Initialize use_tls_ variable in the constructor for consistency


  Commit: 99b4a90f4a314d3428eb40963c7fd552bd501333
      https://github.com/wesnoth/wesnoth/commit/99b4a90f4a314d3428eb40963c7fd552bd501333
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp

  Log Message:
  -----------
  Prevent TLS truncation when addon client disconnects


  Commit: fff1ad2a740d3abbe8ecc28c0d135c899aa6cc86
      https://github.com/wesnoth/wesnoth/commit/fff1ad2a740d3abbe8ecc28c0d135c899aa6cc86
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M src/network_asio.hpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Added methods to check if connection is using TLS


Compare: https://github.com/wesnoth/wesnoth/compare/4221b198bb1b...fff1ad2a740d



More information about the Commits mailing list