Skip to content

Commit

Permalink
using empty session id for quicMode.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed May 2, 2020
1 parent 95b26e2 commit 404fe51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Network/TLS/Handshake/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ handshakeClient' cparams ctx groups mparams = do
where noSessionEMS = SessionEMS `notElem` sessionFlags sdata
-- In compatibility mode a client not offering a pre-TLS 1.3
-- session MUST generate a new 32-byte value
if tls13 && paramSession == Session Nothing
if tls13 && paramSession == Session Nothing && not quicMode
then do
randomSession <- newSession ctx
return (crand, randomSession)
Expand Down

0 comments on commit 404fe51

Please sign in to comment.