Commit bff0db70 authored by Theo Buehler's avatar Theo Buehler
Browse files

Make X509_PURPOSE opaque for LibreSSL >= 3.9

parent 772b0b11
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
@@ -687,6 +687,10 @@ extern "C" {
    pub fn X509_REQ_print(bio: *mut BIO, req: *mut X509_REQ) -> c_int;
}

cfg_if! {
    if #[cfg(libressl390)] {
        pub enum X509_PURPOSE {}
    } else {
        #[repr(C)]
        pub struct X509_PURPOSE {
            pub purpose: c_int,
@@ -698,6 +702,8 @@ pub struct X509_PURPOSE {
            pub sname: *mut c_char,
            pub usr_data: *mut c_void,
        }
    }
}

const_ptr_api! {
    extern "C" {