Skip to content

bpo-34710: fix SSL module build #9347

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

Merged
merged 1 commit into from
Sep 17, 2018
Merged

bpo-34710: fix SSL module build #9347

merged 1 commit into from
Sep 17, 2018

Conversation

commodo
Copy link
Contributor

@commodo commodo commented Sep 17, 2018

Not sure if this fails on all SSL versions. This was found while building
OpenWrt with Python 3.7.0 on x86 & OpenSSL 1.0.2p.

The dh.h header is included in several files, but it doesn't seem to be
included in the ones that are included in _ssl.c (as far as I could
tell).

Signed-off-by: Alexandru Ardelean [email protected]

https://bugs.python.org/issue34710

Not sure if this fails on all SSL versions. This was found while building
OpenWrt with Python 3.7.0 on x86 & OpenSSL 1.0.2p.

The `dh.h` header is included in several files, but it doesn't seem to be
included in the ones that are included in `_ssl.c` (as far as I could
tell).

Signed-off-by: Alexandru Ardelean <[email protected]>
@commodo
Copy link
Contributor Author

commodo commented Sep 17, 2018

Changelog v1 -> v2:

  • added NEWS entry via blurb tool

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@tiran tiran merged commit b3a271f into python:master Sep 17, 2018
@miss-islington
Copy link
Contributor

Thanks @commodo for the PR, and @tiran for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>
@bedevere-bot
Copy link

GH-9351 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-9352 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>
@miss-islington
Copy link
Contributor

Sorry, @commodo and @tiran, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b3a271fc0ce3e13e427be8914decfc205a220ca8 2.7

@commodo
Copy link
Contributor Author

commodo commented Sep 17, 2018

That was fast.
Thanks :)

@tiran - are you doing the cherry-pick to 2.7 or shall I ?

tiran pushed a commit to tiran/cpython that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>.
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>
@bedevere-bot
Copy link

GH-9353 is a backport of this pull request to the 2.7 branch.

@tiran
Copy link
Member

tiran commented Sep 17, 2018

@commodo I took care of the backport

miss-islington added a commit that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>
miss-islington added a commit that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>
@commodo
Copy link
Contributor Author

commodo commented Sep 17, 2018

Cool
Thanks :)

miss-islington pushed a commit that referenced this pull request Sep 17, 2018
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <[email protected]>.
(cherry picked from commit b3a271f)

Co-authored-by: Alexandru Ardelean <[email protected]>



https://bugs.python.org/issue34710
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.

5 participants