]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Jul 2023 16:32:17 +0000 (09:32 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 16:32:17 +0000 (16:32 +0000)
commit497bfd5047d2088718d0b2d8f14fc8022abec502
treea5fd879b35729c66fc2de4141e9e58fe30044c34
parent11b3d38310e98d1fc079938c0ec1b3992a0c7c03
[3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)

gh-106687: _ssl: use uint64_t for SSL options (GH-106700)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_ssl.py
Modules/_ssl.c