diff --git a/pontarius-xmpp.cabal b/pontarius-xmpp.cabal
--- a/pontarius-xmpp.cabal
+++ b/pontarius-xmpp.cabal
@@ -1,6 +1,6 @@
 Cabal-Version: 2.2
 Name:          pontarius-xmpp
-Version:       0.5.6.8
+Version:       0.5.7.0
 Build-Type:    Simple
 License:       BSD-3-Clause
 License-File:  LICENSE.md
@@ -17,7 +17,7 @@
                While in alpha, Pontarius XMPP works quite well and fulfills most
                requirements of the RFCs.
 Category:      Network
-Tested-With:   GHC == 9.6.2
+Tested-With:   GHC == 9.8.2
 
 Extra-Source-Files: README.md
                   , ChangeLog.md
@@ -214,4 +214,4 @@
 Source-Repository this
   Type: git
   Location: https://github.com/l29ah/pontarius-xmpp.git
-  Tag: 0.5.6.8
+  Tag: 0.5.7.0
diff --git a/source/Network/Xmpp/Types.hs b/source/Network/Xmpp/Types.hs
--- a/source/Network/Xmpp/Types.hs
+++ b/source/Network/Xmpp/Types.hs
@@ -1275,9 +1275,11 @@
 xmppDefaultParamsStrong = (defaultParamsClient "" BS.empty)
                         { clientSupported = def
                             { supportedCiphers = ciphersuite_strong
+#if !MIN_VERSION_tls(2,0,0)
                                                  ++ [ cipher_AES256_SHA1
                                                     , cipher_AES128_SHA1
                                                     ]
+#endif
                             }
                         }
 
