Add helper functions for FreeBSD KTLS.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 10 Jun 2020 20:36:38 +0000 (13:36 -0700)
committerMatt Caswell <matt@openssl.org>
Mon, 31 Aug 2020 08:34:19 +0000 (09:34 +0100)
commit3e5826061baa7948ab1d2835357403d16470108d
treef4c54cc831099ef7536ee41f525c25d38a059f4a
parentc34ca13a60f2acb4509be0aec9f506853ffbd1ea
Add helper functions for FreeBSD KTLS.

These are similar to the helpers added in 95badfeb60.  I've adjusted
the arguments passed to ktls_check_supported_cipher and
ktls_configure_crypto so that FreeBSD and Linux can both use the same
signature to avoid OS-specific #ifdef's in libssl.  This also required
moving the check on valid TLS versions into
ktls_check_supported_cipher for Linux.  This has largely removed
OS-specific code and OS-specific #ifdef's for KTLS outside of
<internal/ktls.h>.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12111)
include/internal/ktls.h
ssl/t1_enc.c
ssl/tls13_enc.c