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:
parent
579d4a86d2
commit
c103ba2c87
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue