Merge branch 'v7'

This commit is contained in:
louiz’
2018-04-28 14:17:43 +02:00
2 changed files with 17 additions and 4 deletions
+6
View File
@@ -20,6 +20,12 @@ Version 8.0
the user force a nickname whenever a channel on the server is joined. the user force a nickname whenever a channel on the server is joined.
- Multiple admins can now be listed in the admin field, separated with a colon. - Multiple admins can now be listed in the admin field, separated with a colon.
Version 7.3
===========
- Fix an uncaught exception with botan, when policy does not allow any
available ciphersuite.
Version 7.2 - 2018-01-24 Version 7.2 - 2018-01-24
======================== ========================
+11 -4
View File
@@ -146,15 +146,22 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri
|| errno == EISCONN) || errno == EISCONN)
{ {
log_info("Connection success."); 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" + TimedEventsManager::instance().cancel("connection_timeout" +
std::to_string(this->socket)); std::to_string(this->socket));
this->poller->add_socket_handler(this); this->poller->add_socket_handler(this);
this->connected = true; this->connected = true;
this->connecting = false; 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(); this->connection_date = std::chrono::system_clock::now();
// Get our local TCP port and store it // Get our local TCP port and store it