aboutsummaryrefslogtreecommitdiff
path: root/ssl/ffi.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-03-18 19:13:38 -0700
committerSteven Fackler <[email protected]>2014-03-18 19:13:38 -0700
commitaf1a05678825e30a802ea09383658248d09d2dee (patch)
tree3664c6609c98aa06bc28bdc3d8e879db8a5997d9 /ssl/ffi.rs
parentSSL session closure should be treated like EOF (diff)
downloadrust-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.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/ssl/ffi.rs b/ssl/ffi.rs
index 53a3b4f8..021de3fa 100644
--- a/ssl/ffi.rs
+++ b/ssl/ffi.rs
@@ -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;