diff options
| author | Marc-Antoine Perennou <[email protected]> | 2017-09-14 15:17:13 +0200 |
|---|---|---|
| committer | Marc-Antoine Perennou <[email protected]> | 2017-09-17 11:46:19 +0200 |
| commit | c103ba2c875c9d1eb23fdb574399c1a576f357de (patch) | |
| tree | 58cc1121bdee2577b63801e964cbc6e2e5a3ca8c | |
| parent | openssl-sys: define libressl version (diff) | |
| download | rust-openssl-c103ba2c875c9d1eb23fdb574399c1a576f357de.tar.xz rust-openssl-c103ba2c875c9d1eb23fdb574399c1a576f357de.zip | |
systest: don't include cms.h for libressl 2.6.1
Signed-off-by: Marc-Antoine Perennou <[email protected]>
| -rw-r--r-- | systest/build.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/systest/build.rs b/systest/build.rs index 700d8565..45e335c0 100644 --- a/systest/build.rs +++ b/systest/build.rs @@ -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. |