Skip to content

Commit

Permalink
ktls: Add simple transmit tests of kernel TLS.
Browse files Browse the repository at this point in the history
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

(cherry picked from commit a10482e)
  • Loading branch information
bsdjhb committed Nov 23, 2021
1 parent 81b6dba commit 71e6792
Show file tree
Hide file tree
Showing 2 changed files with 1,035 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sys/kern/Makefile
Expand Up @@ -12,6 +12,7 @@ ATF_TESTS_C+= kern_copyin
ATF_TESTS_C+= kern_descrip_test
ATF_TESTS_C+= fdgrowtable_test
ATF_TESTS_C+= kill_zombie
ATF_TESTS_C+= ktls_test
ATF_TESTS_C+= ptrace_test
TEST_METADATA.ptrace_test+= timeout="15"
ATF_TESTS_C+= reaper
Expand Down Expand Up @@ -46,6 +47,7 @@ LIBADD.sys_getrandom+= pthread
LIBADD.ptrace_test+= pthread
LIBADD.unix_seqpacket_test+= pthread
LIBADD.kcov+= pthread
LIBADD.ktls_test+= crypto
LIBADD.sendfile_helper+= pthread
LIBADD.fdgrowtable_test+= util pthread kvm procstat

Expand Down

0 comments on commit 71e6792

Please sign in to comment.