objc2_security/cipher_suite.rs
1#![allow(unexpected_cfgs)]
2// ((TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST) || (TARGET_OS_OSX && TARGET_CPU_ARM64))
3#[cfg(any(
4 all(
5 all(target_vendor = "apple", not(target_os = "macos")), // TARGET_OS_IPHONE
6 not(target_env = "macabi"), // !TARGET_OS_MACCATALYST
7 ),
8 // (TARGET_OS_OSX && TARGET_CPU_ARM64)
9 all(target_os = "macos", target_arch = "aarch64"),
10))]
11type Inner = u16; // uint16_t
12
13#[cfg(not(any(
14 all(
15 all(target_vendor = "apple", not(target_os = "macos")),
16 not(target_env = "macabi"),
17 ),
18 all(target_os = "macos", target_arch = "aarch64"),
19)))]
20type Inner = u32; // uint32_t
21
22/// [Apple's documentation](https://developer.apple.com/documentation/security/sslciphersuite?language=objc)
23pub type SSLCipherSuite = Inner;