summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-12-30 21:34:11 +0100
committerFlorent Le Coz <louiz@louiz.org>2016-01-04 13:47:27 +0100
commit1f8333f23f060750673d0b7c573f2e2d12142adf (patch)
treec6c92608402af2c5d89f39547bbeb4b9f76acd16 /src/irc
parenta38b17692e0297cbd5d719f059bd0a1b6ef39fe4 (diff)
downloadbiboumi-1f8333f23f060750673d0b7c573f2e2d12142adf.tar.gz
biboumi-1f8333f23f060750673d0b7c573f2e2d12142adf.tar.bz2
biboumi-1f8333f23f060750673d0b7c573f2e2d12142adf.tar.xz
biboumi-1f8333f23f060750673d0b7c573f2e2d12142adf.zip
Support a trusted SHA1 fingerprint to be configured for each IRC server
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index e71d38c..1a83446 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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);
}