|
|
|
@ -532,9 +532,9 @@ data StreamErrorInfo = StreamErrorInfo |
|
|
|
} deriving (Show, Eq) |
|
|
|
} deriving (Show, Eq) |
|
|
|
|
|
|
|
|
|
|
|
data XmppTlsError = XmppTlsError TLSError |
|
|
|
data XmppTlsError = XmppTlsError TLSError |
|
|
|
| XmppTlsConnectionNotEstablished ConnectionNotEstablished |
|
|
|
| XmppTlsConnectionNotEstablished TLSException |
|
|
|
| XmppTlsTerminated Terminated |
|
|
|
| XmppTlsTerminated TLSException |
|
|
|
| XmppTlsHandshakeFailed HandshakeFailed |
|
|
|
| XmppTlsHandshakeFailed TLSException |
|
|
|
deriving (Show, Eq, Typeable) |
|
|
|
deriving (Show, Eq, Typeable) |
|
|
|
|
|
|
|
|
|
|
|
-- | Signals an XMPP stream error or another unpredicted stream-related |
|
|
|
-- | Signals an XMPP stream error or another unpredicted stream-related |
|
|
|
@ -1179,16 +1179,19 @@ data StreamConfiguration = |
|
|
|
-- | How the client should behave in regards to TLS. |
|
|
|
-- | How the client should behave in regards to TLS. |
|
|
|
, tlsBehaviour :: TlsBehaviour |
|
|
|
, tlsBehaviour :: TlsBehaviour |
|
|
|
-- | Settings to be used for TLS negotitation |
|
|
|
-- | Settings to be used for TLS negotitation |
|
|
|
, tlsParams :: TLSParams |
|
|
|
, tlsParams :: ClientParams |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
-- | Default parameters for TLS. Those are the default client parameters from the tls package with the ciphers set to ciphersuite_strong |
|
|
|
-- | Default parameters for TLS. Those are the default client parameters from the tls package with the ciphers set to ciphersuite_strong |
|
|
|
xmppDefaultParams :: Params |
|
|
|
xmppDefaultParams :: ClientParams |
|
|
|
xmppDefaultParams = defaultParamsClient{ pCiphers = ciphersuite_strong |
|
|
|
xmppDefaultParams = (defaultParamsClient "" BS.empty) |
|
|
|
|
|
|
|
{ clientSupported = def |
|
|
|
|
|
|
|
{ supportedCiphers = ciphersuite_strong |
|
|
|
++ [ cipher_AES256_SHA1 |
|
|
|
++ [ cipher_AES256_SHA1 |
|
|
|
, cipher_AES128_SHA1 |
|
|
|
, cipher_AES128_SHA1 |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
instance Default StreamConfiguration where |
|
|
|
instance Default StreamConfiguration where |
|
|
|
def = StreamConfiguration { preferredLang = Nothing |
|
|
|
def = StreamConfiguration { preferredLang = Nothing |
|
|
|
|