@ -9,7 +9,7 @@ module Network.Xmpp.Tls where
@@ -9,7 +9,7 @@ module Network.Xmpp.Tls where
importControl.Applicative((<$>))
importqualifiedControl.Exception.LiftedasEx
importControl.Monad
importControl.Monad.Error
importControl.Monad.Except
importControl.Monad.State.Strict
import"crypto-random"Crypto.Random
importqualifiedData.ByteStringasBS
@ -56,7 +56,7 @@ tls con = fmap join -- We can have Left values both from exceptions and the
@@ -56,7 +56,7 @@ tls con = fmap join -- We can have Left values both from exceptions and the
-- error monad. Join unifies them into one error layer
.wrapExceptions
.flipwithStreamcon
.runErrorT$do
.runExceptT$do
conf<-getsstreamConfiguration
sState<-getsstreamConnectionState
casesStateof
@ -85,7 +85,7 @@ tls con = fmap join -- We can have Left values both from exceptions and the
@@ -85,7 +85,7 @@ tls con = fmap join -- We can have Left values both from exceptions and the
@ -173,7 +173,7 @@ connectTls :: ResolvConf -- ^ Resolv conf to use (try 'defaultResolvConf' as a
@@ -173,7 +173,7 @@ connectTls :: ResolvConf -- ^ Resolv conf to use (try 'defaultResolvConf' as a
->ClientParams-- ^ TLS parameters to use when securing the connection
->String-- ^ Host to use when connecting (will be resolved
@ -623,7 +623,6 @@ data XmppFailure = StreamErrorFailure StreamErrorInfo -- ^ An error XML stream
@@ -623,7 +623,6 @@ data XmppFailure = StreamErrorFailure StreamErrorInfo -- ^ An error XML stream
-- | Signals a SASL authentication error condition.
dataAuthFailure=-- | No mechanism offered by the server was matched
@ -641,9 +640,6 @@ data AuthFailure = -- | No mechanism offered by the server was matched
@@ -641,9 +640,6 @@ data AuthFailure = -- | No mechanism offered by the server was matched
-- | The hostname or IP specified for the connection
@ -1229,7 +1225,7 @@ data ConnectionDetails = UseRealm -- ^ Use realm to resolv host. This is the
@@ -1229,7 +1225,7 @@ data ConnectionDetails = UseRealm -- ^ Use realm to resolv host. This is the
-- default.
|UseSrvHostName-- ^ Use this hostname for a SRV lookup
|UseHostHostNamePortNumber-- ^ Use specified host
|UseConnection(ErrorTXmppFailureIOStreamHandle)
|UseConnection(ExceptTXmppFailureIOStreamHandle)
-- ^ Use a custom method to create a StreamHandle. This
-- will also be used by reconnect. For example, to
-- establish TLS before starting the stream as done by