summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mulk/benki/xmpp.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mulk/benki/xmpp.clj b/src/mulk/benki/xmpp.clj
index 4f967ba..74c4933 100644
--- a/src/mulk/benki/xmpp.clj
+++ b/src/mulk/benki/xmpp.clj
@@ -32,10 +32,10 @@
true ConnectionConfiguration$SecurityMode/enabled
false ConnectionConfiguration$SecurityMode/disabled
:required ConnectionConfiguration$SecurityMode/required))
- (.setVerifyRootCAEnabled true)
- (.setVerifyChainEnabled true)
+ (.setVerifyRootCAEnabled (:verify-cert xmpp-config))
+ (.setVerifyChainEnabled (:verify-cert xmpp-config))
;;(.setCompressionEnabled true)
- (.setSASLAuthenticationEnabled true))]
+ (.setSASLAuthenticationEnabled (:sasl xmpp-config)))]
(doto (XMPPConnection. connection-config)
(.connect)
(.login (:user xmpp-config) (:password xmpp-config) (:resource xmpp-config)))))