From 93a4e96255744363b80603e821e94b551621fbd8 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 8 Sep 2018 21:13:15 -0700 Subject: Refactor openssl-sys The old layout tried to structure itself by version but it ended up with a lot of duplication. Instead, follow the structure of the header files. --- openssl-sys/src/object.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 openssl-sys/src/object.rs (limited to 'openssl-sys/src/object.rs') diff --git a/openssl-sys/src/object.rs b/openssl-sys/src/object.rs new file mode 100644 index 00000000..814b8303 --- /dev/null +++ b/openssl-sys/src/object.rs @@ -0,0 +1,18 @@ +use libc::*; + +use *; + +extern "C" { + pub fn OBJ_nid2ln(nid: c_int) -> *const c_char; + pub fn OBJ_nid2sn(nid: c_int) -> *const c_char; + pub fn OBJ_obj2nid(o: *const ASN1_OBJECT) -> c_int; + pub fn OBJ_obj2txt( + buf: *mut c_char, + buf_len: c_int, + a: *const ASN1_OBJECT, + no_name: c_int, + ) -> c_int; + + pub fn OBJ_find_sigid_algs(signid: c_int, pdig_nid: *mut c_int, ppkey_nid: *mut c_int) + -> c_int; +} -- cgit v1.2.3