selftests: tls: add getsockopt test
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 25 Aug 2023 21:35:07 +0000 (23:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 00:17:40 +0000 (17:17 -0700)
commitf27ad62fe38cf7c0a561628734f348217777127b
tree52de6a957b48461ed6680b9384f268d821c17a2d
parent84e306b0834077f5bd9fb6b9e37298b45c3f5a09
selftests: tls: add getsockopt test

The kernel accepts fetching either just the version and cipher type,
or exactly the per-cipher struct. Also check that getsockopt returns
what we just passed to the kernel.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/81a007ca13de9a74f4af45635d06682cdb385a54.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c