diff options
| author | Steven Fackler <[email protected]> | 2014-03-18 19:13:38 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-03-18 19:13:38 -0700 |
| commit | af1a05678825e30a802ea09383658248d09d2dee (patch) | |
| tree | 3664c6609c98aa06bc28bdc3d8e879db8a5997d9 /ssl/ffi.rs | |
| parent | SSL session closure should be treated like EOF (diff) | |
| download | rust-openssl-af1a05678825e30a802ea09383658248d09d2dee.tar.xz rust-openssl-af1a05678825e30a802ea09383658248d09d2dee.zip | |
Support the dynlock API
Also actually run tests after compiling them >_>
Diffstat (limited to 'ssl/ffi.rs')
| -rw-r--r-- | ssl/ffi.rs | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -102,10 +102,14 @@ pub static XN_FLAG_MULTILINE: c_ulong = 0x2a40006; #[link(name="crypto")] extern "C" { pub fn CRYPTO_num_locks() -> c_int; - pub fn CRYPTO_set_locking_callback(func: extern "C" fn(mode: c_int, - n: c_int, - file: *c_char, - line: c_int)); + pub fn CRYPTO_set_locking_callback( + func: extern fn(mode: c_int, n: c_int, file: *c_char, line: c_int)); + pub fn CRYPTO_set_dynlock_create_callback( + func: extern fn(file: *c_char, line: c_int) -> *c_void); + pub fn CRYPTO_set_dynlock_lock_callback( + func: extern fn(mode: c_int, l: *c_void, file: *c_char, line: c_int)); + pub fn CRYPTO_set_dynlock_destroy_callback( + func: extern fn(l: *c_void, file: *c_char, line: c_int)); pub fn ERR_get_error() -> c_ulong; |