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

SSL.OP_ALL is not an integer and OpenSSL.SSL.Context.set_option() requires an integer. #14

Closed
adiroiban opened this issue Jan 23, 2014 · 2 comments
Milestone

Comments

@adiroiban
Copy link

This is what I got:

(Pdb) SSL.OP_ALL
2147486719L
(Pdb) context.set_options(self._OP_ALL)
*** TypeError: options must be an integer
(Pdb)

Python 2.7.3
pyopenssl 0.14a3
latest published version of cryptography , cffi, pycparse, six...etc
Ubuntu 12.04 - 32
OpenSSL 1.0.1 14 Mar 2012

Thanks!

@exarkun
Copy link
Member

exarkun commented Feb 2, 2014

Looks like this potentially applies to a bunch of methods:

  • Context.set_session_cache_mode - mode
  • Context.set_verify - mode
  • Context.set_verify_depth - depth
  • Context.set_timeout - timeout
  • Context.set_options - options
  • Context.set_mode - mode
  • Connection.send - flags
  • Connection.sendall - flags
  • Connection.bio_read - bufsiz

Less likely to be a problem, but still checking for exactly int instead of int or long:

  • Context.__init__ - method
  • Context.use_certificate_file - filetype
  • Context.use_privatekey_file - filetype
  • Connection.set_shutdown - state

@exarkun
Copy link
Member

exarkun commented Feb 9, 2014

Fixed by #28.

@exarkun exarkun closed this as completed Feb 9, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants