OverflowError: integer 2147486719 does not fit '32-bit int' #773

Closed
mhils opened this Issue Mar 10, 2014 · 1 comment

Projects

None yet

2 participants

@mhils
Contributor
mhils commented Mar 10, 2014

Hi there,

not sure whether this belongs into the cryptography or the pyOpenSSL issue tracker, but it seems to be related to cryptography, so I'm posting it here.

Summary:

from OpenSSL import SSL
context = SSL.Context(SSL.TLSv1_METHOD)
context.set_options(SSL.OP_ALL)
doesn't work on Windows:
Traceback (most recent call last):
  File "", line 1, in 
    context.set_options(SSL.OP_ALL)
  File "C:\Python27\lib\site-packages\OpenSSL\SSL.py", line 753, in set_options
    return _lib.SSL_CTX_set_options(self._context, options)
OverflowError: integer 2147486719 does not fit '32-bit int'

Steps to reproduce (Win 8.1x64, Python 2.7 32 bit):

# Install cryptography as per #762
pip install -I cffi==0.8.1
pip install https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.2-cp27-none-win32.whl#md5=7f3979da8340a7fe3aa859d3bfc1a5f1
pip install pyOpenSSL
python code-from-above.py

Any solution to this issue would be highly appreciated.

Thanks!
Max

@reaperhulk
Member

This is our bug, so thanks for the report. We'll have a fix in master shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment