Skip to content

Commit

Permalink
Fix a FreeBSD build failure when KTLS is enabled
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from #23182)
  • Loading branch information
mattcaswell committed Jan 18, 2024
1 parent 563f4be commit 2cac2fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/internal/ktls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2cac2fe

Please sign in to comment.