objc2_security/generated/
SecCodeHost.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2_core_foundation::*;
5
6use crate::*;
7
8/// [Apple's documentation](https://developer.apple.com/documentation/security/kseccsdedicatedhost?language=objc)
9pub const kSecCSDedicatedHost: u32 = 1;
10/// [Apple's documentation](https://developer.apple.com/documentation/security/kseccsgenerateguesthash?language=objc)
11pub const kSecCSGenerateGuestHash: u32 = 2;
12
13extern "C-unwind" {
14    /// # Safety
15    ///
16    /// - `attributes` generics must be of the correct type.
17    /// - `new_guest` must be a valid pointer.
18    #[cfg(feature = "CSCommon")]
19    #[deprecated]
20    pub fn SecHostCreateGuest(
21        host: SecGuestRef,
22        status: u32,
23        path: &CFURL,
24        attributes: Option<&CFDictionary>,
25        flags: SecCSFlags,
26        new_guest: NonNull<SecGuestRef>,
27    ) -> OSStatus;
28}
29
30extern "C-unwind" {
31    #[cfg(feature = "CSCommon")]
32    #[deprecated]
33    pub fn SecHostRemoveGuest(host: SecGuestRef, guest: SecGuestRef, flags: SecCSFlags)
34        -> OSStatus;
35}
36
37extern "C-unwind" {
38    #[cfg(feature = "CSCommon")]
39    #[deprecated]
40    pub fn SecHostSelectGuest(guest_ref: SecGuestRef, flags: SecCSFlags) -> OSStatus;
41}
42
43extern "C-unwind" {
44    /// # Safety
45    ///
46    /// `guest_ref` must be a valid pointer.
47    #[cfg(feature = "CSCommon")]
48    #[deprecated]
49    pub fn SecHostSelectedGuest(flags: SecCSFlags, guest_ref: NonNull<SecGuestRef>) -> OSStatus;
50}
51
52extern "C-unwind" {
53    /// # Safety
54    ///
55    /// `attributes` generics must be of the correct type.
56    #[cfg(feature = "CSCommon")]
57    #[deprecated]
58    pub fn SecHostSetGuestStatus(
59        guest_ref: SecGuestRef,
60        status: u32,
61        attributes: Option<&CFDictionary>,
62        flags: SecCSFlags,
63    ) -> OSStatus;
64}
65
66extern "C-unwind" {
67    #[cfg(all(feature = "CSCommon", feature = "libc"))]
68    #[deprecated]
69    pub fn SecHostSetHostingPort(hosting_port: libc::mach_port_t, flags: SecCSFlags) -> OSStatus;
70}