Skip to content

Commit b1821cd

Browse files
committed
Merge branch 'maint'
2 parents 41cdd4b + 83def86 commit b1821cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/ssl/src/ssl.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,18 @@ An option that can be supplied to a TLS server.
258258
The type for the messages that are delivered to the owner of a
259259
TLS/DTLS socket in active mode.
260260

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+
261267
The `ssl_passive` message is sent only when the socket is in `{active, N}` mode
262268
and the counter has dropped to 0. It indicates that the socket has transitioned
263269
to passive (`{active, false}`) mode.
264270
""".
265271
-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
267273

268274
-doc(#{title => <<"Socket">>}).
269275
-doc """

0 commit comments

Comments
 (0)