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

Fix OpenSSL error handling for EOF (support for OpenSSL 3.2) #14169

Merged

Conversation

straight-shoota
Copy link
Member

This is following the reasoning from #14168 (comment)

I'm not entirely sure this is exactly correct API usage. The documentation is not very extensive. But judging from the resulting behaviour, and backed by available documentation it seems to be more correct than the current implementation.

@HertzDevil
Copy link
Contributor

On Windows it looks like you have to check WinError.wsa_value instead

src/openssl.cr Outdated Show resolved Hide resolved
straight-shoota and others added 2 commits January 4, 2024 23:50
Co-authored-by: Beta Ziliani <beta@manas.tech>
@beta-ziliani
Copy link
Member

Can't we add OpenSSL 3.2 to the OpenSSL CI to check this change?

@straight-shoota
Copy link
Member Author

We could, but it requires some non-trivial additions to the CI configuration.
Our tests are all running in the docker image of the previous release. At the moment that's based on alpine 3.17, for which OpenSSL 3.2 is not available. Nor is OpenSSL 3.1, so we're not explicitly testing that version either.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Jan 5, 2024
@straight-shoota straight-shoota merged commit 7df0b2e into crystal-lang:master Jan 6, 2024
56 checks passed
@straight-shoota straight-shoota deleted the fix/openssl-3.2 branch January 6, 2024 22:03
@Blacksmoke16 Blacksmoke16 linked an issue Jan 10, 2024 that may be closed by this pull request
This was referenced Jan 10, 2024
straight-shoota added a commit to straight-shoota/crystal that referenced this pull request Jan 11, 2024
straight-shoota added a commit that referenced this pull request Jan 11, 2024
…14169)" (#14217)

Fix OpenSSL error handling for EOF (support for OpenSSL 3.2) (#14169)"
@straight-shoota
Copy link
Member Author

straight-shoota commented Jan 11, 2024

This got eventually reverted in #14217 due to #14200 (comment)

A new approach is happening in #14219

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

Successfully merging this pull request may close these issues.

Support for OpenSSL 3.2.0
3 participants