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

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou 2017-09-14 15:17:13 +02:00
parent 579d4a86d2
commit c103ba2c87
1 changed files with 12 additions and 2 deletions

View File

@ -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.