aboutsummaryrefslogtreecommitdiff
path: root/ffi.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2013-11-16 20:21:48 -0800
committerSteven Fackler <[email protected]>2013-11-16 20:21:48 -0800
commitf8be6415366927350c8874a4c3dc542622979408 (patch)
tree2fef68adce0abae0fca4de4b8cb205a7d7448095 /ffi.rs
parentSwitch docs to sfackler.com (diff)
downloadrust-openssl-f8be6415366927350c8874a4c3dc542622979408.tar.xz
rust-openssl-f8be6415366927350c8874a4c3dc542622979408.zip
Start of x509 interface
Diffstat (limited to 'ffi.rs')
-rw-r--r--ffi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffi.rs b/ffi.rs
index ee6a3e1a..cbb6e492 100644
--- a/ffi.rs
+++ b/ffi.rs
@@ -9,6 +9,7 @@ pub type SSL = c_void;
pub type BIO = c_void;
pub type BIO_METHOD = c_void;
pub type X509_STORE_CTX = c_void;
+pub type X509 = c_void;
pub type CRYPTO_EX_DATA = c_void;
pub type CRYPTO_EX_new = extern "C" fn(parent: *c_void, ptr: *c_void,
@@ -62,6 +63,7 @@ extern "C" {
pub fn X509_STORE_CTX_get_ex_data(ctx: *X509_STORE_CTX, idx: c_int)
-> *c_void;
+ pub fn X509_STORE_CTX_get_current_cert(ct: *X509_STORE_CTX) -> *X509;
pub fn SSL_new(ctx: *SSL_CTX) -> *SSL;
pub fn SSL_free(ssl: *SSL);