]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Jul 2019 12:42:49 +0000 (05:42 -0700)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2019 12:42:49 +0000 (05:42 -0700)
commitbbad695e7890513be7a9bc662e2d8ae13bfcd313
tree164a22ac51baf3d3b2db264263678363f22e91a2
parent58f2c7f424fe91ba035918f0f66306af73a37543
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)

Replace PyLong_FromLong() with PyLong_FromSize_t():
SSL_CTX_get_num_tickets() return type is size_t.

https://bugs.python.org/issue37120
(cherry picked from commit 76611c7c0af6b2f4d0d98a5db827d34cff54ce25)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Modules/_ssl.c