Unverified Commit 9b90b7d9 authored by Alex Gaynor's avatar Alex Gaynor Committed by GitHub
Browse files

Merge pull request #2227 from botovq/x509_val

Make X509_VAL opaque for LibreSSL 4.0.0
parents 96e0f5e6 6162540a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -65,6 +65,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
        if libressl_version >= 0x3_09_00_00_0 {
            cfgs.push("libressl390");
        }
        if libressl_version >= 0x4_00_00_00_0 {
            cfgs.push("libressl400");
        }
    } else {
        let openssl_version = openssl_version.unwrap();

+10 −4
Original line number Diff line number Diff line
use super::super::*;
use libc::*;

cfg_if! {
    if #[cfg(libressl400)] {
        pub enum X509_VAL {}
    } else {
        #[repr(C)]
        pub struct X509_VAL {
            pub notBefore: *mut ASN1_TIME,
            pub notAfter: *mut ASN1_TIME,
        }
    }
}

pub enum X509_NAME_ENTRY {}