Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kTLS options and SSL_sendfile #2203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

james58899
Copy link
Contributor

This adds the ability to enable OpenSSL kTLS, but since all current downstream libs do not support sendfile, I only tested that kTLS works.

The crate's SslStream also does not support kTLS, because it does not directly pass the socket to OpenSSL.
If anyone wants to use kTLS must create a BIO using BIO_new_socket through openssl-sys and write own SslStream.

Note:
During my testing, OpenSSL 3.2 seemed to cause a memory leak when kTLS was enabled but not supported by the kernel, but I could not find any relevant bug reports.
I tried downgrading to OpenSSL 3.1 and the memory leak no longer occurred.
The memory leak also did not occur in OpenSSL 3.2 without kTLS enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant