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

[3.11] gh-106687: _ssl: use uint64_t for SSL options (#106700) #116665

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 12, 2024

SSL_CTX_get_options() uses uint64_t for options:
https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html

Fix this compiler warning on Windows with MSC:

conversion from 'uint64_t' to 'long', possible loss of data

(cherry picked from commit ad95c72)

SSL_CTX_get_options() uses uint64_t for options:
https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html

Fix this compiler warning on Windows with MSC:

    conversion from 'uint64_t' to 'long', possible loss of data

(cherry picked from commit ad95c72)
@vstinner
Copy link
Member Author

@sobolevn @erlend-aasland: Would you mind to double check?

I saw these warnings on the PR https://github.com/python/cpython/pull/116650/files for example.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you for working on oit, this warning was annoying me for quite a while :)

Modules/_ssl.c Show resolved Hide resolved
@vstinner vstinner merged commit f292b07 into python:3.11 Mar 13, 2024
25 checks passed
@vstinner vstinner deleted the ssl_int64 branch March 13, 2024 16:49
@vstinner
Copy link
Member Author

I merged my backport.

@sobolevn: If there is a reference leak, it should be first be fixed in the main branch, since this change is only a backport.

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.

2 participants