Skip X509_OBJECT_data systests

This commit is contained in:
Noah 2020-03-23 14:31:34 -05:00
parent 0769ca54fd
commit 59bff6de85
No known key found for this signature in database
GPG Key ID: E8C14146AE337195
2 changed files with 6 additions and 3 deletions

View File

@ -85,7 +85,7 @@ cfg_if! {
} else { } else {
#[repr(C)] #[repr(C)]
pub struct X509_OBJECT { pub struct X509_OBJECT {
pub type_: X509_LOOKUP_TYPE, pub type_: c_int,
pub data: X509_OBJECT_data, pub data: X509_OBJECT_data,
} }
#[repr(C)] #[repr(C)]

View File

@ -97,7 +97,9 @@ fn main() {
|| s == "bio_info_cb" || s == "bio_info_cb"
|| s.starts_with("CRYPTO_EX_") || s.starts_with("CRYPTO_EX_")
}); });
cfg.skip_struct(|s| s == "ProbeResult"); cfg.skip_struct(|s| {
s == "ProbeResult" || s == "X509_OBJECT_data" // inline union
});
cfg.skip_fn(move |s| { cfg.skip_fn(move |s| {
s == "CRYPTO_memcmp" || // uses volatile s == "CRYPTO_memcmp" || // uses volatile
@ -114,7 +116,8 @@ fn main() {
}); });
cfg.skip_field_type(|s, field| { cfg.skip_field_type(|s, field| {
(s == "EVP_PKEY" && field == "pkey") || // union (s == "EVP_PKEY" && field == "pkey") || // union
(s == "GENERAL_NAME" && field == "d") // union (s == "GENERAL_NAME" && field == "d") || // union
(s == "X509_OBJECT" && field == "data") // union
}); });
cfg.skip_signededness(|s| { cfg.skip_signededness(|s| {
s.ends_with("_cb") s.ends_with("_cb")