Support a trusted SHA1 fingerprint to be configured for each IRC server

This commit is contained in:
Florent Le Coz
2016-01-04 13:47:27 +01:00
parent a38b17692e
commit 1f8333f23f
6 changed files with 47 additions and 2 deletions
+7
View File
@@ -89,6 +89,13 @@ void IrcClient::start()
this->bind_addr = Config::get("outgoing_bind", "");
#ifdef BOTAN_FOUND
# ifdef USE_DATABASE
auto options = Database::get_irc_server_options(this->bridge.get_bare_jid(),
this->get_hostname());
this->credential_manager.set_trusted_fingerprint(options.trustedFingerprint);
# endif
#endif
this->connect(this->hostname, port, tls);
}