]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ktls: Add simple transmit tests of kernel TLS.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 1 Nov 2021 18:28:10 +0000 (11:28 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 1 Nov 2021 18:28:10 +0000 (11:28 -0700)
commita10482ea7476d68d1ab028145ae6d97cef747b49
treef5e0449a0b0ba6354eaae4749c4f88ee38f9e147
parent847b0d07c43c1190f0015c4c93a9e8fd953e3ab5
ktls: Add simple transmit tests of kernel TLS.

Note that these tests test the kernel TLS functionality directly.
Rather than using OpenSSL to perform negotiation and generate keys,
these tests generate random keys send data over a pair of TCP sockets
manually decrypting the TLS records generated by the kernel.

Reviewed by: markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D32652
tests/sys/kern/Makefile
tests/sys/kern/ktls_test.c [new file with mode: 0644]