zephyr/subsys
Robert Lubos e2fe8e7307 net: socket: Add option to create native TLS sock with offloaded TCP
In some cases (for examples when offloaded socket implementation does
not implement TLS functionality) it could be desired to create a native
TLS socket with an underlying offloaded socket.

This cannot be achieved with SO_BINDTODEVICE option only, as TLS socket
type is not really associated with a particular interface - it either
has to be offloaded, or a fully native socket is created (native TLS on
a native interface).

In order to address the problem, introduce TLS_NATIVE socket option.
This option instructs the socket dispatcher layer to create a native TLS
socket. As with the socket dispatcher the underlying socket
implementation is not decided during TLS socket creation, therefore it's
possible to use SO_BINDTODEVICE to choose either native or offloaded
interface for the underlying socket.

Additionally remove NET_SOCKETS_OFFLOAD_TLS Kconfig option, as it's no
longer needed with an runtime option to select whether to offload TLS or
not.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-04-20 11:27:05 +02:00
..
bluetooth Bluetooth: Mesh: Foundation model Client timeout setting 2022-04-20 10:44:23 +02:00
canbus canbus: isotp: remove superfluous default n for boolean 2022-04-19 11:49:27 +02:00
console
cpp
debug debug: Revert ASSERT options dependency 2022-03-29 12:29:55 -07:00
demand_paging
dfu
disk
emul
fb cfb: support for HPACKED fonts 2022-04-06 09:49:00 -05:00
fs fs: Kconifg: use rsource instead of source for local Kconfigs 2022-04-11 12:12:20 +02:00
ipc ipc_service: static_vrings: Add NOCOPY capability 2022-04-01 09:05:06 -05:00
jwt
logging logging: fix LOG_TAG_MAX_LEN min warning 2022-04-19 11:49:34 +02:00
lorawan
mgmt mgmt/mcumgr/lib: doc: Minor fixes to zcbor_bulk documentation 2022-04-19 11:35:16 +02:00
modbus modbus: stop bits can now be set individually in client mode 2022-03-24 08:23:17 -04:00
net net: socket: Add option to create native TLS sock with offloaded TCP 2022-04-20 11:27:05 +02:00
pm pm: device: Dynamically add a device to a power domain 2022-04-18 17:25:01 -07:00
portability include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
random random: rand32_ctr_drbg: fix bug preventing initialization 2022-03-23 07:42:34 -05:00
settings settings: Add support for overriding settings partition 2022-03-24 08:16:46 -04:00
shell shell: fix history optimization 2022-04-20 09:50:03 +02:00
stats
storage
task_wdt
testsuite testsuite: ztest: remove superfluous default n for boolean 2022-04-19 11:49:27 +02:00
timing
tracing tracing: remove superfluous default n for boolean 2022-04-19 11:49:27 +02:00
usb include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
CMakeLists.txt usb: move USB device stack code to own directory 2022-03-31 18:30:14 +02:00
Kconfig usb: move USB device stack code to own directory 2022-03-31 18:30:14 +02:00