Title: Incorrect SSL guarded code (`OPENSSL_VERSION` used instead of `OPENSSL_VERSION_NUMBER`) · Issue #139929 · python/cpython · GitHub
Open Graph Title: Incorrect SSL guarded code (`OPENSSL_VERSION` used instead of `OPENSSL_VERSION_NUMBER`) · Issue #139929 · python/cpython
X Title: Incorrect SSL guarded code (`OPENSSL_VERSION` used instead of `OPENSSL_VERSION_NUMBER`) · Issue #139929 · python/cpython
Description: Bug report Bug description: The OPENSSL_VERSION < 0x101010cf check introduced in the ssl module in #24899 is always true since OPENSSL_VERSION is a parameter for the OpenSSL_version() API and happens to be defined to 0. For this check to...
Open Graph Description: Bug report Bug description: The OPENSSL_VERSION < 0x101010cf check introduced in the ssl module in #24899 is always true since OPENSSL_VERSION is a parameter for the OpenSSL_version() API and happe...
X Description: Bug report Bug description: The OPENSSL_VERSION < 0x101010cf check introduced in the ssl module in #24899 is always true since OPENSSL_VERSION is a parameter for the OpenSSL_version() API and ha...
Opengraph URL: https://github.com/python/cpython/issues/139929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect SSL guarded code (`OPENSSL_VERSION` used instead of `OPENSSL_VERSION_NUMBER`)","articleBody":"# Bug report\n\n### Bug description:\n\nThe `OPENSSL_VERSION \u003c 0x101010cf` check introduced in the ssl module in https://github.com/python/cpython/pull/24899 is always true since `OPENSSL_VERSION` is a parameter for the `OpenSSL_version()` API and happens to be defined to `0`. For this check to work as intended, it should be using `OPENSSL_VERSION_NUMBER` instead.\n\nhttps://github.com/python/cpython/blob/ff7bb565d836162eed0851c36afa325a107a5a56/Modules/_ssl.c#L939-L946\n\nThis is harmless since this stanza is a noop for modern OpenSSL, but should probably still be fixed.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139945\n* gh-139964\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/botovq","@type":"Person","name":"botovq"},"datePublished":"2025-10-11T00:14:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/139929/cpython/issues/139929"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ecee96a3-ce4f-5ca9-de7b-f505808c13a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 984E:A39F5:2A464E3:38F6CAA:696AEA7E |
| html-safe-nonce | 85fde8f2be3f0f9c1ecb12dc26e00d303c21ff9d8f2bd03df8bed11460d42a5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODRFOkEzOUY1OjJBNDY0RTM6MzhGNkNBQTo2OTZBRUE3RSIsInZpc2l0b3JfaWQiOiI0NTAwODI5MjQ2Mzg0MTcxNjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 77225f3cdd32dcc6e1b0e8a4b036df04aa70124ff03ce2cce4d3961c51e0e879 |
| hovercard-subject-tag | issue:3504842744 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4da7741bd8d66b74d205f315c23be8f579998f7f76a41289922c10b52c277245/python/cpython/issues/139929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4da7741bd8d66b74d205f315c23be8f579998f7f76a41289922c10b52c277245/python/cpython/issues/139929 |
| og:image:alt | Bug report Bug description: The OPENSSL_VERSION < 0x101010cf check introduced in the ssl module in #24899 is always true since OPENSSL_VERSION is a parameter for the OpenSSL_version() API and happe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | botovq |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width