From f35b6acd0ca15237976f50a28c1b851c91007ced Mon Sep 17 00:00:00 2001 From: Kornel Date: Fri, 8 Nov 2024 16:09:06 +0000 Subject: [PATCH] Fix CMS on iOS --- security-framework-sys/Cargo.toml | 2 +- security-framework-sys/src/lib.rs | 1 + security-framework/Cargo.toml | 2 +- security-framework/src/cms.rs | 2 +- security-framework/src/lib.rs | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/security-framework-sys/Cargo.toml b/security-framework-sys/Cargo.toml index 8af9a1d2..b7cc6059 100644 --- a/security-framework-sys/Cargo.toml +++ b/security-framework-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "security-framework-sys" -version = "2.12.0" +version = "2.12.1" authors = ["Steven Fackler ", "Kornel "] license = "MIT OR Apache-2.0" description = "Apple `Security.framework` low-level FFI bindings" diff --git a/security-framework-sys/src/lib.rs b/security-framework-sys/src/lib.rs index 8240c86c..f4be4d75 100644 --- a/security-framework-sys/src/lib.rs +++ b/security-framework-sys/src/lib.rs @@ -17,6 +17,7 @@ pub mod certificate; #[cfg(target_os = "macos")] pub mod certificate_oids; pub mod cipher_suite; +#[cfg(target_os = "macos")] pub mod cms; #[cfg(target_os = "macos")] pub mod code_signing; diff --git a/security-framework/Cargo.toml b/security-framework/Cargo.toml index 2031175c..e8ce51eb 100644 --- a/security-framework/Cargo.toml +++ b/security-framework/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "security-framework" -version = "3.0.0" +version = "3.0.1" authors = ["Steven Fackler ", "Kornel "] license = "MIT OR Apache-2.0" description = "Security.framework bindings for macOS and iOS" diff --git a/security-framework/src/cms.rs b/security-framework/src/cms.rs index 83b0bc5c..e860434b 100644 --- a/security-framework/src/cms.rs +++ b/security-framework/src/cms.rs @@ -501,7 +501,7 @@ mod decoder { #[cfg(test)] mod tests { use security_framework_sys::cms::CMSSignerStatus; - use crate::cms::{cms_encode_content, CMSDecoder, CMSEncoder, SignedAttributes}; + use crate::cms::{cms_encode_content, CMSDecoder, SignedAttributes}; use crate::import_export::{ImportedIdentity, Pkcs12ImportOptions}; use crate::policy::SecPolicy; diff --git a/security-framework/src/lib.rs b/security-framework/src/lib.rs index f6fdd054..47c49391 100644 --- a/security-framework/src/lib.rs +++ b/security-framework/src/lib.rs @@ -57,7 +57,7 @@ pub mod secure_transport; pub mod trust; #[cfg(target_os = "macos")] pub mod trust_settings; -#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "visionos"))] +#[cfg(target_os = "macos")] pub mod cms; #[cfg(target_os = "macos")]