Rick Macklem 373511338d uipc_socket.c: Modify MSG_TLSAPPDATA to only do Alert Records
Without this patch, the MSG_TLSAPPDATA flag would cause
soreceive_generic() to return ENXIO for any non-application
data record in a TLS receive stream.

This works ok for TLS1.2, since Alert records appear to be
the only non-application data records received.
However, for TLS1.3, there can be post-handshake handshake
records, such as NewSessionKey sent to the client from the
server. These handshake records cannot be handled by the
upcall which does an SSL_read() with length == 0.

It appears that the client can simply throw away these
NewSessionKey records, but to do so, it needs to receive
them within the kernel.

This patch modifies the semantics of MSG_TLSAPPDATA slightly,
so that it only applies to Alert records and not Handshake
records. It is needed to allow the krpc to work with KTLS1.3.

Reviewed by:	hselasky
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D35170
2022-05-14 12:56:50 -07:00
..
2022-03-10 12:11:32 +01:00
2022-05-13 10:42:17 -03:00
2022-05-11 10:40:39 +03:00
2020-11-19 02:50:48 +00:00
2021-12-28 13:51:25 -08:00
2022-04-10 00:43:53 +03:00
2021-09-09 10:11:02 -04:00
2021-04-18 11:19:15 -06:00
2022-04-28 02:27:35 +03:00
2020-11-05 15:08:56 +00:00
2021-09-14 14:29:27 -04:00
2021-08-08 21:54:49 -04:00
2021-12-14 14:52:25 +00:00
2020-11-09 00:34:23 +00:00
2020-08-13 20:48:14 +00:00
2021-04-02 15:41:51 +03:00
2020-01-12 23:52:16 +00:00
2021-12-09 02:49:10 +02:00
2021-12-09 02:49:10 +02:00
2022-05-14 14:07:20 +03:00
2022-03-21 10:27:35 +00:00
2021-04-18 11:14:17 -06:00
2020-08-27 05:11:15 +00:00
2022-02-22 18:53:43 +00:00
2021-11-17 20:12:26 +00:00
2022-04-10 00:43:53 +03:00
2022-04-02 20:49:01 +02:00