// // KernelUtils.hpp // CoreEntitlements_kernel // // #ifndef CORE_ENTITLEMENTS_KERNEL_H #define CORE_ENTITLEMENTS_KERNEL_H #include #include #include #ifndef CORE_ENTITLEMENTS_I_KNOW_WHAT_IM_DOING #error This is a private API, please consult with the Trusted Execution team before using this. Misusing these functions will lead to security issues. #endif /*! * @function CEQueryContextToOSDictionary * Private API, converts a query context into an OSDictionary that can be handed out to legacy users */ OSPtr CEQueryContextToOSDictionary(CEQueryContext_t entitlements); /*! * @function CEQueryContextToOSObject * Private API, converts a query context into an OSObject that may be returned dynamically */ OSPtr CEQueryContextToOSObject(CEQueryContext_t context); #endif