Skip to content

Commit

Permalink
systest: don't include cms.h for libressl 2.6.1
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-Antoine Perennou <[email protected]>
  • Loading branch information
Keruspe committed Sep 17, 2017
1 parent 579d4a8 commit c103ba2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions systest/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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.
Expand Down

0 comments on commit c103ba2

Please sign in to comment.