aboutsummaryrefslogtreecommitdiff
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-10-26 21:05:27 -0700
committerSteven Fackler <[email protected]>2014-10-26 21:05:27 -0700
commitb41201c3c9fddf42d02f71d11b5d4718eb9e88c4 (patch)
tree8b35341a5bcb0928a5c8b8179b6038898708b2ec /src/ffi.rs
parentUpdate doc location (diff)
downloadrust-openssl-b41201c3c9fddf42d02f71d11b5d4718eb9e88c4.tar.xz
rust-openssl-b41201c3c9fddf42d02f71d11b5d4718eb9e88c4.zip
Clean up some BN stuff
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--[-rwxr-xr-x]src/ffi.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index aa5758f3..dedff22c 100755..100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -6,8 +6,6 @@ use std::ptr;
use std::rt::mutex::NativeMutex;
use sync::one::{Once, ONCE_INIT};
-pub use bn::BIGNUM;
-
pub type ASN1_INTEGER = c_void;
pub type ASN1_STRING = c_void;
pub type ASN1_TIME = c_void;
@@ -66,6 +64,15 @@ pub struct X509V3_CTX {
// Maybe more here
}
+#[repr(C)]
+pub struct BIGNUM {
+ pub d: *mut c_void,
+ pub top: c_int,
+ pub dmax: c_int,
+ pub neg: c_int,
+ pub flags: c_int,
+}
+
pub type CRYPTO_EX_new = extern "C" fn(parent: *mut c_void, ptr: *mut c_void,
ad: *const CRYPTO_EX_DATA, idx: c_int,
argl: c_long, argp: *const c_void) -> c_int;