Skip to content

Commit

Permalink
Fix KTLS compilation error
Browse files Browse the repository at this point in the history
If the kernel headers are sufficiently recent to have KTLS transmit
support, but not recent enough to have KTLS receive support then a
compilation error would be the result.

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#8793)
  • Loading branch information
mattcaswell committed Apr 25, 2019
1 parent 514c9da commit 8450d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/internal/ktls.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ static ossl_inline int ktls_read_record(int fd, void *data, size_t length)
# define TCP_ULP 31
# endif

# ifndef TLS_RX
# define TLS_RX 2
# endif

/*
* When successful, this socket option doesn't change the behaviour of the
* TCP socket, except changing the TCP setsockopt handler to enable the
Expand Down

0 comments on commit 8450d0c

Please sign in to comment.