File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,18 @@ import Network.TLS.Struct13
14
14
15
15
----------------------------------------------------------------
16
16
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 .
22
22
requestCertificate :: Context -> IO Bool
23
23
requestCertificate ctx =
24
24
checkValid ctx >> doRequestCertificate_ (ctxRoleParams ctx) ctx
25
25
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.
31
29
postHandshakeAuthWith :: Context -> Handshake13 -> IO ()
32
30
postHandshakeAuthWith ctx hs =
33
31
withWriteLock ctx $
You can’t perform that action at this time.
0 commit comments