File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -258,12 +258,18 @@ An option that can be supplied to a TLS server.
258
258
The type for the messages that are delivered to the owner of a
259
259
TLS/DTLS socket in active mode.
260
260
261
+ The `ssl_error` reason may convey a TLS protocol alert if such an event occurs
262
+ after the connection has been established. The most common case when this will
263
+ happen is on the client side when a TLS-1.3 server requests a client certificate
264
+ and the provided certificate is not accepted by the server, as it will be
265
+ verified after the server has sent its last handshake message.
266
+
261
267
The `ssl_passive` message is sent only when the socket is in `{active, N}` mode
262
268
and the counter has dropped to 0. It indicates that the socket has transitioned
263
269
to passive (`{active, false}`) mode.
264
270
""" .
265
271
-type active_msgs () :: {ssl , sslsocket (), Data :: binary () | list ()} | {ssl_closed , sslsocket ()} |
266
- {ssl_error , sslsocket (), Reason :: any ()} | {ssl_passive , sslsocket ()}. % exported
272
+ {ssl_error , sslsocket (), Alert :: error_alert () | Reason :: any ()} | {ssl_passive , sslsocket ()}. % exported
267
273
268
274
-doc (#{title => <<" Socket" >>}).
269
275
-doc """
You can’t perform that action at this time.
0 commit comments