summaryrefslogtreecommitdiffstats
path: root/vendor/openssl-sys/src/bn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/openssl-sys/src/bn.rs')
-rw-r--r--vendor/openssl-sys/src/bn.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/openssl-sys/src/bn.rs b/vendor/openssl-sys/src/bn.rs
new file mode 100644
index 000000000..a6bbcce88
--- /dev/null
+++ b/vendor/openssl-sys/src/bn.rs
@@ -0,0 +1,15 @@
+use libc::*;
+
+#[cfg(target_pointer_width = "64")]
+pub type BN_ULONG = c_ulonglong;
+#[cfg(target_pointer_width = "32")]
+pub type BN_ULONG = c_uint;
+
+#[cfg(ossl110)]
+pub const BN_FLG_MALLOCED: c_int = 0x01;
+#[cfg(ossl110)]
+pub const BN_FLG_STATIC_DATA: c_int = 0x02;
+#[cfg(ossl110)]
+pub const BN_FLG_CONSTTIME: c_int = 0x04;
+#[cfg(ossl110)]
+pub const BN_FLG_SECURE: c_int = 0x08;