Fix a FreeBSD build failure when KTLS is enabled
authorMatt Caswell <matt@openssl.org>
Tue, 2 Jan 2024 16:37:29 +0000 (16:37 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Jan 2024 15:20:18 +0000 (15:20 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23182)

include/internal/ktls.h

index af27a32569713efc29ec22862797a24d5226e50e..80f2cfec54e29a9ab288c5426e298c593e196fdd 100644 (file)
@@ -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.