diff options
author | Matt Caswell <matt@openssl.org> | 2019-04-19 14:53:56 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-04-25 14:02:52 +0200 |
commit | 8450d0c784f8cec58e1b41c79fb3836b9f2acd5e (patch) | |
tree | aaf37b34190a1b529934cdb75438fcc5090b7edf /include/internal | |
parent | Enforce a strict output length check in CRYPTO_ccm128_tag (diff) | |
download | openssl-8450d0c784f8cec58e1b41c79fb3836b9f2acd5e.tar.xz openssl-8450d0c784f8cec58e1b41c79fb3836b9f2acd5e.zip |
Fix KTLS compilation error
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 <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8793)
Diffstat (limited to 'include/internal')
-rw-r--r-- | include/internal/ktls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/internal/ktls.h b/include/internal/ktls.h index 5495a8de51..d7bd1f3b66 100644 --- a/include/internal/ktls.h +++ b/include/internal/ktls.h @@ -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 |