aboutsummaryrefslogtreecommitdiff
path: root/src/asn1
diff options
context:
space:
mode:
authorValerii Hiora <[email protected]>2014-09-28 08:15:51 +0300
committerValerii Hiora <[email protected]>2014-09-30 08:21:31 +0300
commit02637ec7d451c38792c42c5c2cb4d59505e13ced (patch)
tree12a842f098c7cdbea5190097647666d34eabc093 /src/asn1
parentMerge pull request #53 from vhbit/cert-gen (diff)
downloadrust-openssl-02637ec7d451c38792c42c5c2cb4d59505e13ced.tar.xz
rust-openssl-02637ec7d451c38792c42c5c2cb4d59505e13ced.zip
single `ffi` module
Diffstat (limited to 'src/asn1')
-rw-r--r--src/asn1/mod.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/asn1/mod.rs b/src/asn1/mod.rs
index d302d6b7..e69de29b 100644
--- a/src/asn1/mod.rs
+++ b/src/asn1/mod.rs
@@ -1,23 +0,0 @@
-pub mod ffi {
- #![allow(dead_code)]
- #![allow(non_camel_case_types)]
- use libc::{c_int, c_long, c_void};
-
- pub type ASN1_INTEGER = c_void;
- pub type ASN1_TIME = c_void;
- pub type ASN1_STRING = c_void;
-
- pub static MBSTRING_FLAG: c_int = 0x1000;
- pub static MBSTRING_UTF8: c_int = MBSTRING_FLAG;
- pub static MBSTRING_ASC: c_int = MBSTRING_FLAG | 1;
- pub static MBSTRING_BMP: c_int = MBSTRING_FLAG | 2;
- pub static MBSTRING_UNIV: c_int = MBSTRING_FLAG | 4;
-
- pub static V_ASN1_UTCTIME: c_int = 23;
- pub static V_ASN1_GENERALIZEDTIME: c_int = 24;
-
- extern "C" {
- pub fn ASN1_STRING_type_new(ty: c_int) -> *mut ASN1_STRING;
- pub fn ASN1_INTEGER_set(dest: *mut ASN1_INTEGER, value: c_long) -> c_int;
- }
-}