Commit 9cafc739 authored by David Benjamin's avatar David Benjamin
Browse files

Restore struct in handwritten, memory-unsafe bindings

parent 25606f09
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -687,7 +687,17 @@ extern "C" {
    pub fn X509_REQ_print(bio: *mut BIO, req: *mut X509_REQ) -> c_int;
}

pub enum X509_PURPOSE {}
#[repr(C)]
pub struct X509_PURPOSE {
    pub purpose: c_int,
    pub trust: c_int, // Default trust ID
    pub flags: c_int,
    pub check_purpose:
        Option<unsafe extern "C" fn(*const X509_PURPOSE, *const X509, c_int) -> c_int>,
    pub name: *mut c_char,
    pub sname: *mut c_char,
    pub usr_data: *mut c_void,
}

const_ptr_api! {
    extern "C" {