From: Matt Caswell Date: Tue, 2 Jan 2024 16:37:29 +0000 (+0000) Subject: Fix a FreeBSD build failure when KTLS is enabled X-Git-Tag: openssl-3.3.0-alpha1~283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cac2feff2612c0a324675d8151fea3e2d03397c;p=thirdparty%2Fopenssl.git Fix a FreeBSD build failure when KTLS is enabled Reviewed-by: Tomas Mraz Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/23182) --- diff --git a/include/internal/ktls.h b/include/internal/ktls.h index af27a325697..80f2cfec54e 100644 --- a/include/internal/ktls.h +++ b/include/internal/ktls.h @@ -80,6 +80,12 @@ static ossl_inline int ktls_start(int fd, ktls_crypto_info_t *tls_en, int is_tx) # endif } +/* Not supported on FreeBSD */ +static ossl_inline int ktls_enable_tx_zerocopy_sendfile(int fd) +{ + return 0; +} + /* * Send a TLS record using the tls_en provided in ktls_start and use * record_type instead of the default SSL3_RT_APPLICATION_DATA.