packages feed

network-conduit-tls 1.0.1 → 1.0.1.1

raw patch · 2 files changed

+12/−2 lines, 2 filesdep +cprng-aesPVP ok

version bump matches the API change (PVP)

Dependencies added: cprng-aes

API changes (from Hackage documentation)

Files

Data/Conduit/Network/TLS.hs view
@@ -44,6 +44,9 @@ #endif import Network.Socket (Socket) import qualified Data.ByteString as S+#if MIN_VERSION_tls(1, 1, 3)+import qualified Crypto.Random.AESCtr+#endif  tlsConfig :: HostPreference           -> Int -- ^ port@@ -70,7 +73,9 @@         return ()       where         handle socket addr mlocal = do-#if MIN_VERSION_tls(1, 1, 0)+#if MIN_VERSION_tls(1, 1, 3)+            gen <- Crypto.Random.AESCtr.makeSystem+#elif MIN_VERSION_tls(1, 1, 0)             gen <- getSystemRandomGen #else             gen <- newGenIO@@ -85,7 +90,11 @@                     , TLS.backendRecv = recvExact socket                     }                 params+#if MIN_VERSION_tls(1, 1, 3)+                gen+#else                 (gen :: SystemRandom)+#endif #else             ctx <- TLS.serverWith                 params
network-conduit-tls.cabal view
@@ -1,5 +1,5 @@ name:                network-conduit-tls-version:             1.0.1+version:             1.0.1.1 synopsis:            Create TLS-aware network code with conduits description:         Uses the tls package for a pure-Haskell implementation. homepage:            https://github.com/snoyberg/conduit@@ -29,3 +29,4 @@                     , tls-extra       >= 0.4                     , crypto-api      >= 0.10                     , crypto-random-api >= 0.2+                    , cprng-aes