commit | 9f9113a7bb736a835f978d27e95603c8d6f52b7c | [log] [tgz] |
---|---|---|
author | Paul Kehrer <paul.l.kehrer@gmail.com> | Tue Sep 20 20:10:25 2016 -0500 |
committer | Alex Gaynor <alex.gaynor@gmail.com> | Tue Sep 20 21:10:25 2016 -0400 |
tree | b91f8e803968018557711cf2e4d9ee64910ea7b0 | |
parent | 6b68c0e6ce6c19c6985505f0dd1340d44bda1b04 [diff] [blame] |
fix cffi warnings for proper buffer types (#545)
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 84a1a07..d811199 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py
@@ -1100,7 +1100,7 @@ if digest == _ffi.NULL: raise ValueError("No such digest method") - result_buffer = _ffi.new("char[]", _lib.EVP_MAX_MD_SIZE) + result_buffer = _ffi.new("unsigned char[]", _lib.EVP_MAX_MD_SIZE) result_length = _ffi.new("unsigned int[]", 1) result_length[0] = len(result_buffer)