aboutsummaryrefslogtreecommitdiff
path: root/src/ssl/ffi.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2013-09-19 12:54:01 -0700
committerSteven Fackler <[email protected]>2013-09-19 12:54:01 -0700
commita7dab3624e8424bd6c498e7ef14509dfd2a2434f (patch)
tree043babcfb6e2a945c494091ab4bea50b089d04eb /src/ssl/ffi.rs
parentConnect working (diff)
downloadrust-openssl-a7dab3624e8424bd6c498e7ef14509dfd2a2434f.tar.xz
rust-openssl-a7dab3624e8424bd6c498e7ef14509dfd2a2434f.zip
Sketched out implementation
doesn't work
Diffstat (limited to 'src/ssl/ffi.rs')
-rw-r--r--src/ssl/ffi.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ssl/ffi.rs b/src/ssl/ffi.rs
index 07591b78..e12bb3c2 100644
--- a/src/ssl/ffi.rs
+++ b/src/ssl/ffi.rs
@@ -1,6 +1,6 @@
#[doc(hidden)];
-use std::libc::{c_int, c_long, c_void};
+use std::libc::{c_int, c_void};
// openssl/ssl.h
pub type SSL_CTX = c_void;
@@ -35,6 +35,8 @@ externfn!(fn SSL_set_bio(ssl: *SSL, rbio: *BIO, wbio: *BIO))
externfn!(fn SSL_set_connect_state(ssl: *SSL))
externfn!(fn SSL_connect(ssl: *SSL) -> c_int)
externfn!(fn SSL_get_error(ssl: *SSL, ret: c_int) -> c_int)
+externfn!(fn SSL_read(ssl: *SSL, buf: *c_void, num: c_int) -> c_int)
+externfn!(fn SSL_write(ssl: *SSL, buf: *c_void, num: c_int) -> c_int)
externfn!(fn BIO_s_mem() -> *BIO_METHOD)
externfn!(fn BIO_new(type_: *BIO_METHOD) -> *BIO)