Skip to content

Commit

Permalink
sending EcPointFormats from SH12
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 24, 2024
1 parent 2ac30a7 commit 920338d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tls/Network/TLS/Handshake/Server/ServerHello12.hs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ makeServerHello sparams ctx usedCipher mcred chExts session = do
ticktExt
| not resuming && useTicket = Just $ toExtensionRaw $ SessionTicket ""
| otherwise = Nothing
let eccExt = case extensionLookup EID_EcPointFormats chExts of
Nothing -> Nothing
Just _ -> Just $ toExtensionRaw $ EcPointFormatsSupported [EcPointFormat_Uncompressed]
let shExts =
sharedHelloExtensions (serverShared sparams)
++ catMaybes
Expand All @@ -282,6 +285,7 @@ makeServerHello sparams ctx usedCipher mcred chExts session = do
, protoExt
, sniExt
, ticktExt
, eccExt
]
usingState_ ctx $ setVersion TLS12
usingHState ctx $
Expand Down

0 comments on commit 920338d

Please sign in to comment.