summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2024-01-02 16:37:29 +0000
committerMatt Caswell <matt@openssl.org>2024-01-18 15:20:18 +0000
commit2cac2feff2612c0a324675d8151fea3e2d03397c (patch)
treed2b278d568afb5907f8684d43d25c223298a0f8a /include
parent563f4be8976ea776ec4fb90d084e2ce80c92f0d1 (diff)
Fix a FreeBSD build failure when KTLS is enabled
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23182)
Diffstat (limited to 'include')
-rw-r--r--include/internal/ktls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/ktls.h b/include/internal/ktls.h
index af27a32569..80f2cfec54 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.