Skip to content

Commit c3bc88f

Browse files
committed
updating doc
1 parent 5a49398 commit c3bc88f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Diff for: tls/Network/TLS/PostHandshake.hs

+8-10
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,18 @@ import Network.TLS.Struct13
1414

1515
----------------------------------------------------------------
1616

17-
-- Server only
18-
19-
-- | Post-handshake certificate request with TLS 1.3. Returns 'True' if the
20-
-- request was possible, i.e. if TLS 1.3 is used and the remote client supports
21-
-- post-handshake authentication.
17+
-- | Post-handshake certificate request with TLS 1.3. Returns 'False'
18+
-- if the request was impossible, i.e. the remote client supports
19+
-- post-handshake authentication or the connection is established in
20+
-- TLS 1.2. Returns 'True' if the client authentication succeeds. An
21+
-- exception is thrown if the authentication fails. Server only.
2222
requestCertificate :: Context -> IO Bool
2323
requestCertificate ctx =
2424
checkValid ctx >> doRequestCertificate_ (ctxRoleParams ctx) ctx
2525

26-
-- Client only
27-
28-
-- Handle a post-handshake authentication flight with TLS 1.3. This is called
29-
-- automatically by 'recvData', in a context where the read lock is already
30-
-- taken.
26+
-- | Handle a post-handshake authentication flight with TLS 1.3. This
27+
-- is called automatically by 'recvData', in a context where the read
28+
-- lock is already taken. Client only.
3129
postHandshakeAuthWith :: Context -> Handshake13 -> IO ()
3230
postHandshakeAuthWith ctx hs =
3331
withWriteLock ctx $

0 commit comments

Comments
 (0)