Commit c103ba2c authored by Marc-Antoine Perennou's avatar Marc-Antoine Perennou
Browse files

systest: don't include cms.h for libressl 2.6.1

parent 579d4a86
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -41,6 +41,12 @@ fn main() {
        }
    }

    let has_cms_h = if let Ok(version) = env::var("DEP_OPENSSL_LIBRESSL_VERSION") {
        version != "261"
    } else {
        true
    };

    cfg.header("openssl/comp.h")
        .header("openssl/dh.h")
        .header("openssl/ossl_typ.h")
@@ -56,8 +62,12 @@ fn main() {
        .header("openssl/pkcs12.h")
        .header("openssl/bn.h")
        .header("openssl/aes.h")
        .header("openssl/ocsp.h")
        .header("openssl/cms.h");
        .header("openssl/ocsp.h");

    if has_cms_h {
        cfg.header("openssl/cms.h");
    }

    cfg.type_name(|s, is_struct| {
        // Add some `*` on some callback parameters to get function pointer to
        // typecheck in C, especially on MSVC.