Skip to content

Commit

Permalink
printing TLS12 resumption
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Feb 8, 2024
1 parent 0c86262 commit 322be4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debug/src/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ printHandshakeInfo ctx = do
putStrLn ("cipher: " ++ show (infoCipher i))
putStrLn ("compression: " ++ show (infoCompression i))
putStrLn ("group: " ++ maybe "(none)" show (infoSupportedGroup i))
when (infoVersion i < TLS13) $
when (infoVersion i < TLS13) $ do
putStrLn ("extended master secret: " ++ show (infoExtendedMainSecret i))
putStrLn ("resumption: " ++ show (infoTLS12Resumption i))
when (infoVersion i == TLS13) $ do
putStrLn ("handshake emode: " ++ show (fromJust (infoTLS13HandshakeMode i)))
putStrLn ("early data accepted: " ++ show (infoIsEarlyDataAccepted i))
Expand Down

0 comments on commit 322be4d

Please sign in to comment.