Advertisement
asavah

python cryptography clear stack

Feb 9th, 2017
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --- cryptography/hazmat/bindings/openssl/binding.py.orig 2017-02-09 21:18:27.375460365 +0200
  2. +++ cryptography/hazmat/bindings/openssl/binding.py 2017-02-09 21:18:58.206871845 +0200
  3. @@ -137,7 +137,8 @@
  4.  
  5. @classmethod
  6. def _register_osrandom_engine(cls):
  7. - _openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
  8. + #_openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
  9. + cls.lib.ERR_clear_error()
  10.  
  11. engine = cls.lib.ENGINE_new()
  12. _openssl_assert(cls.lib, engine != cls.ffi.NULL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement