selftests: tls: add helper for creating sock pairs
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Nov 2021 23:25:49 +0000 (15:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:28:15 +0000 (19:28 -0800)
commita125f91fe783a79c9d990fe6e28a3da8d9a0857f
treef0bf35b0aa3c114f1c099d2c75bbfacb661d1c11
parent9dbe33cf371bd70330858370bdbc35c7668f00c3
selftests: tls: add helper for creating sock pairs

We have the same code 3 times, about to add a fourth copy.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c