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

Sergey Popov noreply at github.com
Thu May 6 14:11:15 UTC 2021


  Branch: refs/heads/tls_wip
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b72b7a05edc742101cf67b0da6a67334395e14a9
      https://github.com/wesnoth/wesnoth/commit/b72b7a05edc742101cf67b0da6a67334395e14a9
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 54a2bc3ee4f41f02bad556067b6ee6cd101aa565
      https://github.com/wesnoth/wesnoth/commit/54a2bc3ee4f41f02bad556067b6ee6cd101aa565
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 356efd1b0246d3605a4e3abf3e102e98a268bdfe
      https://github.com/wesnoth/wesnoth/commit/356efd1b0246d3605a4e3abf3e102e98a268bdfe
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: abf7bcda5204fc9b6dd19275aa9ff132d6b41bf5
      https://github.com/wesnoth/wesnoth/commit/abf7bcda5204fc9b6dd19275aa9ff132d6b41bf5
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 857d47b17a0fc092323ad2e47eec36886bfbf6fd
      https://github.com/wesnoth/wesnoth/commit/857d47b17a0fc092323ad2e47eec36886bfbf6fd
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 3dc0ee3978ae4997419344ef36453ea433fc56da
      https://github.com/wesnoth/wesnoth/commit/3dc0ee3978ae4997419344ef36453ea433fc56da
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 586787d02a5dd56215d6e891727becfe0591ae9a
      https://github.com/wesnoth/wesnoth/commit/586787d02a5dd56215d6e891727becfe0591ae9a
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: 288ad7795c9fde6a7a271683feb09c5407436c7a
      https://github.com/wesnoth/wesnoth/commit/288ad7795c9fde6a7a271683feb09c5407436c7a
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

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


  Commit: 495cfedcf4a8f2618c96d34949d13c12a35ff983
      https://github.com/wesnoth/wesnoth/commit/495cfedcf4a8f2618c96d34949d13c12a35ff983
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

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


  Commit: cb3bef43a8f3cb9b27fbd57caac2c805c913b276
      https://github.com/wesnoth/wesnoth/commit/cb3bef43a8f3cb9b27fbd57caac2c805c913b276
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

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


  Commit: a9ebae77dfdbfe9e14abeabb61de0458c213f4d1
      https://github.com/wesnoth/wesnoth/commit/a9ebae77dfdbfe9e14abeabb61de0458c213f4d1
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: c010a4072e37d916006606fc2783932891ef6dda
      https://github.com/wesnoth/wesnoth/commit/c010a4072e37d916006606fc2783932891ef6dda
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M src/wesnothd_connection.cpp

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


  Commit: d4c2d391fd70d08ee2c5776fc6f59f8c6486a6c2
      https://github.com/wesnoth/wesnoth/commit/d4c2d391fd70d08ee2c5776fc6f59f8c6486a6c2
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 11d7384fc2f6ce53699b4689e8a024b44eab7a79
      https://github.com/wesnoth/wesnoth/commit/11d7384fc2f6ce53699b4689e8a024b44eab7a79
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: a0dd401d90e0873245ae67e0434c3eac95516f3d
      https://github.com/wesnoth/wesnoth/commit/a0dd401d90e0873245ae67e0434c3eac95516f3d
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: d89fc738d81f2be0fc409815f2fec9f1f6287e61
      https://github.com/wesnoth/wesnoth/commit/d89fc738d81f2be0fc409815f2fec9f1f6287e61
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: 6732bf1e4dfda1d7c4ef0c522c33b588dcc73298
      https://github.com/wesnoth/wesnoth/commit/6732bf1e4dfda1d7c4ef0c522c33b588dcc73298
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: 7f1f1cecdfb11dba3bfddc07463f6fd7d1866e6e
      https://github.com/wesnoth/wesnoth/commit/7f1f1cecdfb11dba3bfddc07463f6fd7d1866e6e
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: 6cf7f82f08a8bd963f1a60aadedc9a4a03e5071a
      https://github.com/wesnoth/wesnoth/commit/6cf7f82f08a8bd963f1a60aadedc9a4a03e5071a
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: efafaead8dde20e7b545f13c8bae71ab37343918
      https://github.com/wesnoth/wesnoth/commit/efafaead8dde20e7b545f13c8bae71ab37343918
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: aad7e14ed18baa339f939962211e31771597e375
      https://github.com/wesnoth/wesnoth/commit/aad7e14ed18baa339f939962211e31771597e375
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 1c4c5d4d1eb0f7e57eec51f092141ecd414b4a48
      https://github.com/wesnoth/wesnoth/commit/1c4c5d4d1eb0f7e57eec51f092141ecd414b4a48
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: e40871189fb976a873fac1993bce6851ba23d88f
      https://github.com/wesnoth/wesnoth/commit/e40871189fb976a873fac1993bce6851ba23d88f
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: ae8b526310b6e6caf134d0ce8d21cc2d39180dcb
      https://github.com/wesnoth/wesnoth/commit/ae8b526310b6e6caf134d0ce8d21cc2d39180dcb
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 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: 8e3d6b229f335bf5247bab153ea460938ad22d5c
      https://github.com/wesnoth/wesnoth/commit/8e3d6b229f335bf5247bab153ea460938ad22d5c
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: 070d1196b7cefece3e29e82e74691533f264a70d
      https://github.com/wesnoth/wesnoth/commit/070d1196b7cefece3e29e82e74691533f264a70d
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

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


  Commit: a4f9024808698b40cbd1260358820ce1b44d0242
      https://github.com/wesnoth/wesnoth/commit/a4f9024808698b40cbd1260358820ce1b44d0242
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

  Log Message:
  -----------
  Change logging annotation for TLS in campaignd


  Commit: 2bc117fc668d2f4a980239c8a8e3a79ea74f6254
      https://github.com/wesnoth/wesnoth/commit/2bc117fc668d2f4a980239c8a8e3a79ea74f6254
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

  Log Message:
  -----------
  Added "+" prefix in wesnothd when logging tls connections


  Commit: ec5300b1dfc3caa8fcc53cb662d6fa22b9aacefd
      https://github.com/wesnoth/wesnoth/commit/ec5300b1dfc3caa8fcc53cb662d6fa22b9aacefd
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

  Log Message:
  -----------
  Replace union type punning with reinterpret_cast


  Commit: c37a7baf452f3c1ca95b4acf29af044eb04bd36c
      https://github.com/wesnoth/wesnoth/commit/c37a7baf452f3c1ca95b4acf29af044eb04bd36c
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

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

  Log Message:
  -----------
  Whitespace fix


Compare: https://github.com/wesnoth/wesnoth/compare/ad2a0eda96d9...c37a7baf452f



More information about the Commits mailing list