Skip to content

Commit

Permalink
preparing for tls v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jun 25, 2024
1 parent d50e118 commit 26f1d18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions warp-tls/Network/Wai/Handler/WarpTLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ getTLSinfo ctx = do
minfo <- TLS.contextGetInformation ctx
case minfo of
Nothing -> return TCP
Just TLS.Information{..} -> do
let (major, minor) = case infoVersion of
Just info -> do
let (major, minor) = case TLS.infoVersion info of
TLS.SSL2 -> (2, 0)
TLS.SSL3 -> (3, 0)
TLS.TLS10 -> (3, 1)
Expand All @@ -458,7 +458,7 @@ getTLSinfo ctx = do
{ tlsMajorVersion = major
, tlsMinorVersion = minor
, tlsNegotiatedProtocol = proto
, tlsChiperID = TLS.cipherID infoCipher
, tlsChiperID = TLS.cipherID $ TLS.infoCipher info
, tlsClientCertificate = clientCert
}

Expand Down
2 changes: 1 addition & 1 deletion warp-tls/warp-tls.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Library
, wai >= 3.2 && < 3.3
, warp >= 3.3.29 && < 3.5
, data-default-class >= 0.0.1
, tls >= 1.7
, tls >= 1.7 && < 2.2
, network >= 2.2.1
, streaming-commons
, tls-session-manager >= 0.0.4
Expand Down

0 comments on commit 26f1d18

Please sign in to comment.