-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 build with LibreSSL 2.7 #4210
Conversation
Tested with - OpenSSL 1.1.0h - LibreSSL 2.7.2 on 2.1.4 version Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
Looks like there are some pep8 issues with line length, can you take a look at fixing those? Thanks for working on this! |
Yeah, noticed the line lenght issues that in the CI logs. Will update the pull-request. |
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
Don't think I caused this 🎲
|
No, you didn't. Grrr, it's a flake, I've restarted the build. |
pypa/pip#5345 is an issue that I believe describes what happened here |
Ok, jenkins is green now. |
Do check what I've done, please. I do a lot of C #ifdef-fing in a lot of projects but this Python cffi stuff is definitely not my expertise 😆 |
FWIW, I successfully tested these patches on FreeBSD 11-STABLE/armv6, like this:
There were no errors in the build. This was just patching against version 2.1.4. (And of course LibreSSL is enabled via the necessary entries in /etc/make.conf.) HTH |
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
Result of make test with patched 2.1.4 on FreeBSD 11.1-p9 with LibreSSL 2.7.3 I was able to build master/fix-libressl27 branch without any 'implicit declaration' errors. |
Good day, Cryptography builds without errors with LibreSSL 2.7.3. |
When is this being merged? Thanks! |
We won't be merging support until it works across all our supported versions of OpenSSL. This patch does not. #4234 extends this work but the approach used there is too complex to maintain going forward so the author is trying to come up with a simpler way to do it. So we have no timeline for merge because we don't have a mergeable patch at the moment, sorry. I'm actually going to go ahead and close this PR since other PRs have taken up the work, but Bernard feel free to open a new PR if you want to! |
For readability of the block I duplicated the version stuff in
src/_cffi_src/openssl/cryptography.py
.The rest are small changes for things that LibreSSL has not added from the 1.1.0 branch.
Tested with
on 2.1.4 version
Signed-off-by: Bernard Spil brnrd@FreeBSD.org