Tiran

Untitled

Jan 27th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py
  2. index 1cfe816..ad9334e 100644
  3. --- a/src/cryptography/hazmat/bindings/openssl/binding.py
  4. +++ b/src/cryptography/hazmat/bindings/openssl/binding.py
  5. @@ -169,7 +169,7 @@ class Binding(object):
  6.  
  7. # Use Python's implementation if available, importing _ssl triggers
  8. # the setup for this.
  9. - __import__("_ssl")
  10. + #__import__("_ssl")
  11.  
  12. if cls.lib.CRYPTO_get_locking_callback() != cls.ffi.NULL:
  13. return
  14. @@ -184,6 +184,7 @@ class Binding(object):
  15. @classmethod
  16. def _lock_cb(cls, mode, n, file, line):
  17. lock = cls._locks[n]
  18. + print(mode, n, file, line)
  19.  
  20. if mode & cls.lib.CRYPTO_LOCK:
  21. lock.acquire()
Advertisement
Add Comment
Please, Sign In to add comment