diff options
| author | Cody P Schafer <[email protected]> | 2014-10-13 15:14:58 -0400 |
|---|---|---|
| committer | Cody P Schafer <[email protected]> | 2014-11-24 15:38:04 -0500 |
| commit | 381a9b6e511099b71891ebcec48b131cf80f2c51 (patch) | |
| tree | dc9d16222f2f999b7a2c9e10c3e2262cd4a3ab27 /openssl-sys/src | |
| parent | Add more crate metadata (diff) | |
| download | rust-openssl-381a9b6e511099b71891ebcec48b131cf80f2c51.tar.xz rust-openssl-381a9b6e511099b71891ebcec48b131cf80f2c51.zip | |
sys (and bn): make CRYPTO_free() take a *mut c_void insead of a *const c_char
CRYPTO_free() ends up being used for a variety of types of data, not just
c_char. And it essentially takes full ownership of the type, making
*mut appropriate.
With this change it also more closely (exactly) matches the C defintion:
void CRYPTO_free(void *ptr);
Diffstat (limited to 'openssl-sys/src')
| -rwxr-xr-x | openssl-sys/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index a482c357..649e269e 100755 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -295,7 +295,7 @@ extern "C" { n: c_int, file: *const c_char, line: c_int)); - pub fn CRYPTO_free(buf: *const c_char); + pub fn CRYPTO_free(buf: *mut c_void); pub fn CRYPTO_memcmp(a: *const c_void, b: *const c_void, len: size_t) -> c_int; |