]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor the KTLS tests to minimize code duplication.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 29 Jul 2020 21:56:58 +0000 (14:56 -0700)
committerMatt Caswell <matt@openssl.org>
Mon, 31 Aug 2020 08:34:19 +0000 (09:34 +0100)
commiteb818d23c2f451ed56030d9e9fb94bd60ec48b07
tree0a3d1f30c3b58d33a5523effc7826ea0a34bcac5
parentc7b46b549d59797c3f1ea6541f8ff6f02009cbc5
Refactor the KTLS tests to minimize code duplication.

Use the low 4 bits of the test number directly as flags for which of
the connection sides should use KTLS or not for each test instead of
having 16 nearly identical functions to do the same thing.

This makes it easier to skip tests that aren't supported (e.g. KTLS RX
on TLS 1.3).

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12111)
test/sslapitest.c