selftests: tls: add selftests for TLS sockets
authorDave Watson <davejwatson@fb.com>
Thu, 12 Jul 2018 17:59:20 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 20:33:10 +0000 (13:33 -0700)
commit7f657d5bf507be0f059405306e860c4b3e40854b
tree50c8725a2888b06e67200f97176c665e4ec87f3f
parent568a74d491124c720e604ed3265722f969a5fb38
selftests: tls: add selftests for TLS sockets

Add selftests for tls socket.  Tests various iov and message options,
poll blocking and nonblocking behavior, partial message sends / receives,
 and control message data.  Tests should pass regardless of if TLS
is enabled in the kernel or not, and print a warning message if not.

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/tls.c [new file with mode: 0644]