1use libc::*;
2
3use super::super::*;
4
5extern "C" {
6 pub fn OBJ_nid2ln(nid: c_int) -> *const c_char;
7 pub fn OBJ_nid2sn(nid: c_int) -> *const c_char;
8 pub fn OBJ_nid2obj(n: c_int) -> *mut ASN1_OBJECT;
9 pub fn OBJ_obj2nid(o: *const ASN1_OBJECT) -> c_int;
10 pub fn OBJ_obj2txt(
11 buf: *mut c_char,
12 buf_len: c_int,
13 a: *const ASN1_OBJECT,
14 no_name: c_int,
15 ) -> c_int;
16
17 pub fn OBJ_find_sigid_algs(signid: c_int, pdig_nid: *mut c_int, ppkey_nid: *mut c_int)
18 -> c_int;
19 pub fn OBJ_sn2nid(sn: *const libc::c_char) -> libc::c_int;
20 pub fn OBJ_txt2obj(s: *const libc::c_char, no_name: libc::c_int) -> *mut ASN1_OBJECT;
21 pub fn OBJ_create(
22 oid: *const libc::c_char,
23 sn: *const libc::c_char,
24 ln: *const libc::c_char,
25 ) -> c_int;
26 #[cfg(ossl111)]
27 pub fn OBJ_length(obj: *const ASN1_OBJECT) -> libc::size_t;
28 #[cfg(ossl111)]
29 pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const c_uchar;
30 pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> c_int;
31}
32