asavah

python cryptography clear stack

Feb 9th, 2017
360
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data