Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 19, 2024
1 parent e228669 commit 044afcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tls/Network/TLS/Handshake/Server/ClientHello12.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ processClientHello12
-> IO (Cipher, Maybe Credential)
processClientHello12 sparams ctx ch = do
let secureRenegotiation = supportedSecureRenegotiation $ ctxSupported ctx
when secureRenegotiation $ checkSesecureRenegotiation ctx ch
when secureRenegotiation $ checkSecureRenegotiation ctx ch
serverName <- usingState_ ctx getClientSNI
extraCreds <- onServerNameIndication (serverHooks sparams) serverName
let (creds, signatureCreds, ciphersFilteredVersion) =
Expand All @@ -45,8 +45,8 @@ processClientHello12 sparams ctx ch = do
mcred <- chooseCreds usedCipher creds signatureCreds
return (usedCipher, mcred)

checkSesecureRenegotiation :: Context -> CH -> IO ()
checkSesecureRenegotiation ctx CH{..} = do
checkSecureRenegotiation :: Context -> CH -> IO ()
checkSecureRenegotiation ctx CH{..} = do
-- RFC 5746: secure renegotiation
-- TLS_EMPTY_RENEGOTIATION_INFO_SCSV: {0x00, 0xFF}
when (CipherID 0xff `elem` chCiphers) $
Expand Down

0 comments on commit 044afcc

Please sign in to comment.