packages feed

warp-tls 1.1.0 → 1.1.1

raw patch · 2 files changed

+6/−9 lines, 2 filesdep ~certificatedep ~tlsdep ~tls-extraPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: certificate, tls, tls-extra

API changes (from Hackage documentation)

Files

Network/Wai/Handler/WarpTLS.hs view
@@ -19,9 +19,7 @@ import qualified Data.Certificate.X509 as X509 import qualified Data.Certificate.PEM as PEM import qualified Data.ByteString as B-import Control.Monad (unless) import qualified Data.Certificate.KeyRSA as KeyRSA-import Control.Applicative ((<$>))  data TLSSettings = TLSSettings     { certFile :: FilePath@@ -53,8 +51,7 @@             hSetBuffering h NoBuffering             gen <- newGenIO             ctx <- TLS.server params (gen :: SystemRandom) h-            b <- TLS.handshake ctx-            unless b $ error "Invalid handshake"+            TLS.handshake ctx             let conn = Connection                     { connSendMany = TLS.sendData ctx . L.fromChunks                     , connSendAll = TLS.sendData ctx . L.fromChunks . return@@ -62,7 +59,7 @@                     , connClose = do                         TLS.bye ctx                         hClose h-                    , connRecv = B.concat . L.toChunks <$> TLS.recvData ctx+                    , connRecv = TLS.recvData ctx                     }             return (conn, sa) 
warp-tls.cabal view
@@ -1,5 +1,5 @@ Name:                warp-tls-Version:             1.1.0+Version:             1.1.1 Synopsis:            SSL support for Warp via the TLS package License:             BSD3 License-file:        LICENSE@@ -19,10 +19,10 @@                    , warp                          >= 1.1      && < 1.2                    , transformers                  >= 0.2      && < 0.3                    , conduit                       >= 0.2-                   , certificate                   >= 1.0.1    && < 1.1+                   , certificate                   >= 1.1      && < 1.2                    , cryptocipher                  >= 0.3      && < 0.4-                   , tls-extra                     >= 0.4      && < 0.5-                   , tls                           >= 0.8.1    && < 0.9+                   , tls-extra                     >= 0.4.3    && < 0.5+                   , tls                           >= 0.9      && < 0.10                    , crypto-api                    >= 0.8      && < 0.10                    , network                       >= 2.2.1    && < 2.4   Exposed-modules:   Network.Wai.Handler.WarpTLS