From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id C9F4D3854160; Mon, 11 Jul 2022 11:50:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9F4D3854160 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add a TOE KTLS mode and a TOE hook for allocating TLS sessions. X-Act-Checkin: newlib-cygwin X-Git-Author: John Baldwin X-Git-Refname: refs/heads/master X-Git-Oldrev: 1ef7e3904de8bdf080ae63496d7c0c4be928e8b6 X-Git-Newrev: 12fb531a70a1b2db10e5a50bcc071b18021594c6 Message-Id: <20220711115058.C9F4D3854160@sourceware.org> Date: Mon, 11 Jul 2022 11:50:58 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 11:50:58 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D12fb531a70a= 1b2db10e5a50bcc071b18021594c6 commit 12fb531a70a1b2db10e5a50bcc071b18021594c6 Author: John Baldwin Date: Tue Oct 8 21:34:06 2019 +0000 Add a TOE KTLS mode and a TOE hook for allocating TLS sessions. =20 This adds the glue to allocate TLS sessions and invokes it from the TLS enable socket option handler. This also adds some counters for active TOE sessions. =20 The TOE KTLS mode is returned by getsockopt(TLSTX_TLS_MODE) when TOE KTLS is in use on a socket, but cannot be set via setsockopt(). =20 To simplify various checks, a TLS session now includes an explicit 'mode' member set to the value returned by TLSTX_TLS_MODE. Various places that used to check 'sw_encrypt' against NULL to determine software vs ifnet (NIC) TLS now check 'mode' instead. =20 Reviewed by: np, gallatin Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D21891 Diff: --- newlib/libc/sys/rtems/include/netinet/tcp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/sys/rtems/include/netinet/tcp.h b/newlib/libc/sys/= rtems/include/netinet/tcp.h index 37ba3bb55..125cacb28 100644 --- a/newlib/libc/sys/rtems/include/netinet/tcp.h +++ b/newlib/libc/sys/rtems/include/netinet/tcp.h @@ -357,6 +357,7 @@ struct tcp_function_set { #define TCP_TLS_MODE_NONE 0 #define TCP_TLS_MODE_SW 1 #define TCP_TLS_MODE_IFNET 2 +#define TCP_TLS_MODE_TOE 3 =20 /* * TCP Control message types