Unverified Commit 06143eb3 authored by Alex Gaynor's avatar Alex Gaynor Committed by GitHub
Browse files

Merge pull request #2145 from botovq/opaque-purpose

Make X509_PURPOSE opaque for LibreSSL >= 3.9.0
parents 772b0b11 bff0db70
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" {