Skip to content

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

Merged
vstinner merged 1 commit into
python:3.11from
vstinner:ssl_int64
Mar 13, 2024
Merged

[3.11] gh-106687: _ssl: use uint64_t for SSL options (#106700)#116665
vstinner merged 1 commit into
python:3.11from
vstinner:ssl_int64

Conversation

@vstinner

@vstinner vstinner commented Mar 12, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

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 :)

Comment thread Modules/_ssl.c
@vstinner vstinner merged commit f292b07 into python:3.11 Mar 13, 2024
@vstinner vstinner deleted the ssl_int64 branch March 13, 2024 16:49
@vstinner

Copy link
Copy Markdown
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