diff options
author | Glyph <glyph@twistedmatrix.com> | 2015-06-27 18:33:27 -0700 |
---|---|---|
committer | Glyph <glyph@twistedmatrix.com> | 2015-06-27 18:33:27 -0700 |
commit | 4e9b7d852e79769c2d51396ed747f63b85cefb29 (patch) | |
tree | dde51dfd27a115880e8205d07565b40bbc7646ad | |
parent | c1d04467fdc58e4f97e7768f77706ac4c8099c42 (diff) | |
download | cryptography-4e9b7d852e79769c2d51396ed747f63b85cefb29.tar.gz cryptography-4e9b7d852e79769c2d51396ed747f63b85cefb29.tar.bz2 cryptography-4e9b7d852e79769c2d51396ed747f63b85cefb29.zip |
coding standard
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/binding.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py index 1fb7478d..27c70745 100644 --- a/src/cryptography/hazmat/bindings/openssl/binding.py +++ b/src/cryptography/hazmat/bindings/openssl/binding.py @@ -12,9 +12,10 @@ from cryptography.hazmat.bindings._openssl import ffi, lib _osrandom_engine_id = ffi.new("const char[]", b"osrandom") _osrandom_engine_name = ffi.new("const char[]", b"osrandom_engine") + @ffi.callback("int (*)(unsigned char *, int)", error=0) def osrandom_rand_bytes(buf, size): - signed = ffi.cast("char*", buf) + signed = ffi.cast("char *", buf) result = os.urandom(size) signed[0:size] = result return 1 |