~singpolyma/biboumi

d887baa064318fdb350fb6c3f7b8e2104a644fcb — louiz’ 4 years ago f481e2f
Fix a crash when botan policy does not allow any available ciphersuite
2 files changed, 17 insertions(+), 4 deletions(-)

M CHANGELOG.rst
M src/network/tcp_client_socket_handler.cpp
M CHANGELOG.rst => CHANGELOG.rst +6 -0
@@ 1,3 1,9 @@
Version 7.3
===========

- Fix an uncaught exception with botan, when policy does not allow any
  available ciphersuite.

Version 7.2 - 2018-01-24
========================


M src/network/tcp_client_socket_handler.cpp => src/network/tcp_client_socket_handler.cpp +11 -4
@@ 146,15 146,22 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri
          || errno == EISCONN)
        {
          log_info("Connection success.");
#ifdef BOTAN_FOUND
          if (this->use_tls)
            try {
                this->start_tls(this->address, this->port);
              } catch (const Botan::Exception& e)
              {
                this->on_connection_failed("TLS error: "s + e.what());
                this->close();
                return ;
              }
#endif
          TimedEventsManager::instance().cancel("connection_timeout" +
                                                std::to_string(this->socket));
          this->poller->add_socket_handler(this);
          this->connected = true;
          this->connecting = false;
#ifdef BOTAN_FOUND
          if (this->use_tls)
            this->start_tls(this->address, this->port);
#endif
          this->connection_date = std::chrono::system_clock::now();

          // Get our local TCP port and store it