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 1.1.1 by using new APIs #2226

Merged
merged 2 commits into from
Nov 7, 2018

Conversation

WebFreak001
Copy link
Contributor

Use new BIO methods
more error handling
Also changes minimum protocol version to new API
Split the error handling API to be more usable
Fix IO error message
fix #2214

Also changes minimum protocol version to new API
Split the error handling API to be more usable
Fix IO error message
fix vibe-d#2214
@WebFreak001
Copy link
Contributor Author

Couldn't test OpenSSL 1.0.0 locally because of linking errors which existed before the PR already (no, the libs hack doesn't fix it because then it segfaults trying to mix 1.1.1 and 1.0.0)

@WebFreak001
Copy link
Contributor Author

ping @s-ludwig @wilzbach

fixes vibe.d on ArchLinux, Ubuntu 18.10 and other distros using OpenSSL 1.1.1

b.flags = 0;
b.ptr = null;
BIO_set_init(b, 0);
BIO_clear_flags(b, int.max);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you mean -1 (or better ~0) here?

@s-ludwig
Copy link
Member

s-ludwig commented Nov 6, 2018

Looks fine to me. Since the CI tests pass, the 1.0.x branch should still be fine. I'd test for 1.1.0 after the merge and before tagging a new version.

@s-ludwig s-ludwig merged commit 7fdf59a into vibe-d:master Nov 7, 2018
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.

HTTPS requests broken
2 participants