tls-session-manager 0.1.1 → 0.1.2
raw patch · 3 files changed
+11/−11 lines, 3 filesdep ~tlsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: tls
API changes (from Hackage documentation)
Files
- ChangeLog.md +5/−0
- test/SessionManagerSpec.hs +4/−9
- tls-session-manager.cabal +2/−2
ChangeLog.md view
@@ -1,5 +1,10 @@ # ChangeLog for tls-session-manager +## 0.1.2++* Require tls >= 2.4.13 and build the tests with `defaultSessionData`.+ [#607](https://github.com/haskell-tls/hs-tls/pull/607)+ ## 0.1.1 * Keep a TLS 1.3 session no longer than the lifetime of its ticket.
test/SessionManagerSpec.hs view
@@ -7,7 +7,7 @@ import Data.Maybe (isJust, isNothing) import qualified Data.OrdPSQ as Q import Network.TLS-import Network.TLS.Internal (Second, SessionData (..), TLS13TicketInfo (..))+import Network.TLS.Internal (Second, TLS13TicketInfo (..)) import Network.TLS.SessionManager import Network.TLS.SessionManager.Internal ( Availability (..),@@ -72,20 +72,15 @@ ref <- newIORef Fresh return (toValue (sessionData Nothing), ref) --- | Session data with a TLS 1.3 ticket of the given lifetime, if any.+-- | Session data with a TLS 1.3 ticket of the given lifetime, if any. Only+-- fields that tls 2.4 has too are set. sessionData :: Maybe Second -> SessionData sessionData life =- SessionData+ defaultSessionData { sessionVersion = TLS13 , sessionCipher = 0x1301- , sessionCompression = 0- , sessionClientSNI = Nothing , sessionSecret = "secret"- , sessionGroup = Nothing , sessionTicketInfo = ticketInfo <$> life- , sessionALPN = Nothing- , sessionMaxEarlyDataSize = 0- , sessionFlags = [] } where ticketInfo l =
tls-session-manager.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: tls-session-manager-version: 0.1.1+version: 0.1.2 license: BSD3 license-file: LICENSE maintainer: kazu@iij.ad.jp@@ -29,7 +29,7 @@ psqueues >= 0.2 && < 0.3, ram, serialise >= 0.2 && < 0.3,- tls >= 2.3 && < 2.6+ tls >= 2.4.13 && < 2.6 if impl(ghc >=8) default-extensions: Strict StrictData