1 // 2 // KernelUtils.hpp 3 // CoreEntitlements_kernel 4 // 5 // 6 7 #pragma once 8 9 #include "CoreEntitlements.h" 10 #include <libkern/c++/OSPtr.h> 11 #include <libkern/c++/OSDictionary.h> 12 13 #ifndef CORE_ENTITLEMENTS_I_KNOW_WHAT_IM_DOING 14 #error This is a private API, please consult with the Trusted Execution team before using this. Misusing these functions will lead to security issues. 15 #endif 16 17 /*! 18 * @function CEQueryContextToOSDictionary 19 * Private API, converts a query context into an OSDictionary that can be handed out to legacy users 20 */ 21 OSPtr<OSDictionary> CEQueryContextToOSDictionary(CEQueryContext_t entitlements); 22